diff --git a/Makefile b/Makefile index 0f931a2030..fd528de2c4 100644 --- a/Makefile +++ b/Makefile @@ -349,7 +349,10 @@ GIT-VERSION-FILE: FORCE # CFLAGS and LDFLAGS are for the users to override from the command line. -CFLAGS = -g -O2 -Wall +CFLAGS = -g -O2 -Wall -Werror \ + -Wno-pointer-to-int-cast \ + -Wold-style-definition \ + -Wdeclaration-after-statement LDFLAGS = ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS)