diff --git a/Examples/Makefile.preamble b/Examples/Makefile.preamble index 03efab610..599f0118c 100644 --- a/Examples/Makefile.preamble +++ b/Examples/Makefile.preamble @@ -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) diff --git a/SSL/Makefile.preamble b/SSL/Makefile.preamble index edf4a60f2..378cf7ba8 100644 --- a/SSL/Makefile.preamble +++ b/SSL/Makefile.preamble @@ -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) diff --git a/Source/Additions/Makefile.preamble b/Source/Additions/Makefile.preamble index 34e80cb0c..daa6b7f50 100644 --- a/Source/Additions/Makefile.preamble +++ b/Source/Additions/Makefile.preamble @@ -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 = diff --git a/Source/Makefile.preamble b/Source/Makefile.preamble index 3f6b0b814..52cff99d6 100644 --- a/Source/Makefile.preamble +++ b/Source/Makefile.preamble @@ -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 \ diff --git a/Source/ObjectiveC2/Makefile.preamble b/Source/ObjectiveC2/Makefile.preamble index 319838aff..c24c15d1e 100644 --- a/Source/ObjectiveC2/Makefile.preamble +++ b/Source/ObjectiveC2/Makefile.preamble @@ -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 = diff --git a/Source/unix/Makefile.preamble b/Source/unix/Makefile.preamble index 5309f0e31..737818c80 100644 --- a/Source/unix/Makefile.preamble +++ b/Source/unix/Makefile.preamble @@ -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 = diff --git a/Source/win32/Makefile.preamble b/Source/win32/Makefile.preamble index 5309f0e31..737818c80 100644 --- a/Source/win32/Makefile.preamble +++ b/Source/win32/Makefile.preamble @@ -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 = diff --git a/Tools/Makefile.preamble b/Tools/Makefile.preamble index e9c569791..48522eb55 100644 --- a/Tools/Makefile.preamble +++ b/Tools/Makefile.preamble @@ -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 += diff --git a/Tools/make_strings/GNUmakefile.preamble b/Tools/make_strings/GNUmakefile.preamble index 8e01ed0c8..5a39676ee 100644 --- a/Tools/make_strings/GNUmakefile.preamble +++ b/Tools/make_strings/GNUmakefile.preamble @@ -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 +=