Add -Wdeclaration-after-statement to compiler flags
authorJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2013 17:54:53 +0000 (10:54 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2013 17:54:53 +0000 (10:54 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile

index c5cef311162e2554bf7b662e245fd32c272b6c1b..d10123e774b6a5c7db7a5d27da16ce4db85e9624 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ endif
 DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
 CPPFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(DEBUGFLAGS)
 OPTFLAGS= -O3 -g -ffast-math
 DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
 CPPFLAGS= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(DEBUGFLAGS)
 OPTFLAGS= -O3 -g -ffast-math
-CFLAGS = -std=gnu99 -Wwrite-strings -Wall $(OPTFLAGS) $(EXTFLAGS) $(BUILD_CFLAGS)
+CFLAGS = -std=gnu99 -Wwrite-strings -Wall -Wdeclaration-after-statement $(OPTFLAGS) $(EXTFLAGS) $(BUILD_CFLAGS)
 LIBS   += -lm $(EXTLIBS)
 PROGS  = fio
 SCRIPTS = fio_generate_plots
 LIBS   += -lm $(EXTLIBS)
 PROGS  = fio
 SCRIPTS = fio_generate_plots