So that some one can do "make OPT=0" for compiling sparse with -O0. Signed-off-by: Christopher Li <sparse@xxxxxxxxxxx> --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9db6b15..dfda866 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ OS = linux CC = gcc -CFLAGS = -O2 -finline-functions -fno-strict-aliasing -g +OPT = 2 +CFLAGS = -O$(OPT) -finline-functions -fno-strict-aliasing -g CFLAGS += -Wall -Wwrite-strings ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS) DBG_CFLAGS = $(ALL_CFLAGS) -DSPARSE_DEBUG -- 2.13.4 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html