add -Wdeclaration-after-statement

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29822 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-03-03 09:56:34 +00:00
parent 542a7c3d80
commit 09666b5d16
9 changed files with 27 additions and 12 deletions

View file

@ -19,7 +19,8 @@
# #
# You should have received a copy of the GNU General Public # You should have received a copy of the GNU General Public
# License along with this library; if not, write to the Free # License along with this library; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. # Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02111 USA.
# #
# #
@ -36,13 +37,13 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = ADDITIONAL_CPPFLAGS = -Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS = ADDITIONAL_OBJCFLAGS =
# Additional flags to pass to the C compiler # Additional flags to pass to the C compiler
ADDITIONAL_CFLAGS = ADDITIONAL_CFLAGS =
# Additional include directories the compiler should search # Additional include directories the compiler should search
ifeq ($(FOUNDATION_LIB),gnu) ifeq ($(FOUNDATION_LIB),gnu)

View file

@ -39,7 +39,9 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-Wall \
-Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS = $(SSLFLAGS) ADDITIONAL_OBJCFLAGS = $(SSLFLAGS)

View file

@ -39,7 +39,10 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall -DNO_GNUSTEP=1 ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-Wall \
-Wdeclaration-after-statement \
-DNO_GNUSTEP=1
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
#ADDITIONAL_OBJCFLAGS = #ADDITIONAL_OBJCFLAGS =

View file

@ -41,6 +41,7 @@
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall \ ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall \
-Wcast-align \ -Wcast-align \
-Wdeclaration-after-statement \
#-Wstrict-prototypes \ #-Wstrict-prototypes \
#-Wpointer-arith \ #-Wpointer-arith \
#-Wcast-qual \ #-Wcast-qual \

View file

@ -39,7 +39,9 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-Wall \
-Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
#ADDITIONAL_OBJCFLAGS = #ADDITIONAL_OBJCFLAGS =

View file

@ -39,7 +39,9 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-Wall \
-Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
#ADDITIONAL_OBJCFLAGS = #ADDITIONAL_OBJCFLAGS =

View file

@ -39,7 +39,9 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) -Wall ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-Wall \
-Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
#ADDITIONAL_OBJCFLAGS = #ADDITIONAL_OBJCFLAGS =

View file

@ -37,10 +37,12 @@
# #
# Additional flags to pass to the preprocessor # Additional flags to pass to the preprocessor
# ADDITIONAL_CPPFLAGS += ADDITIONAL_CPPFLAGS += \
-Wall \
-Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS += -Wall #ADDITIONAL_OBJCFLAGS +=
# Additional flags to pass to the C compiler # Additional flags to pass to the C compiler
#ADDITIONAL_CFLAGS += #ADDITIONAL_CFLAGS +=

View file

@ -40,7 +40,7 @@
ADDITIONAL_CPPFLAGS += ADDITIONAL_CPPFLAGS +=
# Additional flags to pass to the Objective-C compiler # Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS += -Wall ADDITIONAL_OBJCFLAGS += -Wall -Wdeclaration-after-statement
# Additional flags to pass to the C compiler # Additional flags to pass to the C compiler
#ADDITIONAL_CFLAGS += #ADDITIONAL_CFLAGS +=