Mesa (master): config: add -Wdeclaration-after-statement to linux config
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 12 23:24:00 UTC 2009
Module: Mesa
Branch: master
Commit: 8e1b2bac8be4f3a46d7d1c33f43b66c669f3971e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e1b2bac8be4f3a46d7d1c33f43b66c669f3971e
Author: Brian Paul <brianp at vmware.com>
Date: Thu Mar 12 17:21:20 2009 -0600
config: add -Wdeclaration-after-statement to linux config
Should help to catch Windows build issues earlier.
---
configs/linux | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configs/linux b/configs/linux
index 15700a1..73a6b61 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) \
More information about the mesa-commit
mailing list