[PATCH 1/2] tools/gpio: Enable compiler optimization to catch more bugs

From: Geert Uytterhoeven
Date: Fri Mar 25 2016 - 08:36:44 EST


Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
tools/gpio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile
index 4d198d5c42032661..c155d6bc47a7580c 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

--
1.9.1