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:
rfm 2010-03-03 09:56:34 +00:00
parent 4ef9ec8b86
commit 9500a92a7e
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
# 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_CPPFLAGS =
ADDITIONAL_CPPFLAGS = -Wdeclaration-after-statement
# Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS =
ADDITIONAL_OBJCFLAGS =
# Additional flags to pass to the C compiler
ADDITIONAL_CFLAGS =
ADDITIONAL_CFLAGS =
# Additional include directories the compiler should search
ifeq ($(FOUNDATION_LIB),gnu)

View file

@ -39,7 +39,9 @@
#
# 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_OBJCFLAGS = $(SSLFLAGS)

View file

@ -39,7 +39,10 @@
#
# 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_OBJCFLAGS =

View file

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

View file

@ -39,7 +39,9 @@
#
# 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_OBJCFLAGS =

View file

@ -39,7 +39,9 @@
#
# 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_OBJCFLAGS =

View file

@ -39,7 +39,9 @@
#
# 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_OBJCFLAGS =

View file

@ -37,10 +37,12 @@
#
# 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_OBJCFLAGS += -Wall
#ADDITIONAL_OBJCFLAGS +=
# Additional flags to pass to the C compiler
#ADDITIONAL_CFLAGS +=

View file

@ -40,7 +40,7 @@
ADDITIONAL_CPPFLAGS +=
# 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_CFLAGS +=