Use -Wdeclaration-after-statement.
[pintos-anon] / src / Make.config
index b1d480e70ae51453e636057e5b7d556722443825..fdf6ce164901a928f195355aadb1d588dc34baf5 100644 (file)
@@ -24,7 +24,8 @@ endif
 
 # Compiler and assembler invocation.
 DEFINES =
-WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers
+WARNINGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wsystem-headers \
+          -Wdeclaration-after-statement
 CFLAGS = -g -MMD -msoft-float
 CPPFLAGS = -nostdinc -I$(SRCDIR) -I$(SRCDIR)/lib
 ASFLAGS = -Wa,--gstabs -MMD