diff options
Diffstat (limited to 'tools/gpio')
-rw-r--r-- | tools/gpio/Makefile | 2 | ||||
-rw-r--r-- | tools/gpio/lsgpio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile index 4d198d5c4..c155d6bc4 100644 --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -1,5 +1,5 @@ CC = $(CROSS_COMPILE)gcc -CFLAGS += -Wall -g -D_GNU_SOURCE +CFLAGS += -O2 -Wall -g -D_GNU_SOURCE all: lsgpio diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index 1124da375..eb3f56efd 100644 --- a/tools/gpio/lsgpio.c +++ b/tools/gpio/lsgpio.c @@ -147,7 +147,7 @@ void print_usage(void) int main(int argc, char **argv) { - const char *device_name; + const char *device_name = NULL; int ret; int c; |