diff --git a/Makefile b/Makefile index 073c3f67e6..c7c90e5f33 100644 --- a/Makefile +++ b/Makefile @@ -308,7 +308,10 @@ endif # 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)