summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-03-12 17:21:20 -0600
committerBrian Paul <brianp@vmware.com>2009-03-12 17:21:20 -0600
commit8e1b2bac8be4f3a46d7d1c33f43b66c669f3971e (patch)
tree9c7a4d7581db62de67355b9ef84167f215c6ee98 /configs
parent8b2ecfdd5c883d4c86b7cc1252671ebb0fad7994 (diff)
config: add -Wdeclaration-after-statement to linux config
Should help to catch Windows build issues earlier.
Diffstat (limited to 'configs')
-rw-r--r--configs/linux3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/linux b/configs/linux
index 15700a1a3b..73a6b61b2f 100644
--- a/configs/linux
+++ b/configs/linux
@@ -22,7 +22,8 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
X11_INCLUDES = -I/usr/X11R6/include
-CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
+CFLAGS = -Wall -Wmissing-prototypes -Wdeclaration-after-statement \
+ $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
$(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \