[Libreoffice-commits] .: solenv/gbuild solenv/inc
Fridrich Strba
fridrich at kemper.freedesktop.org
Mon Oct 10 03:53:17 PDT 2011
solenv/gbuild/platform/unxgcc.mk | 1 +
solenv/gbuild/platform/winmingw.mk | 1 +
solenv/inc/unxgcc.mk | 3 ++-
solenv/inc/wntgcci.mk | 1 +
4 files changed, 5 insertions(+), 1 deletion(-)
New commits:
commit eb09adaa9a2accbdc3531bb96447c8e7fbb9f8a9
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Mon Oct 10 12:52:10 2011 +0200
Warn if declaration follows statement in C-files
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index 0379d7c..7ee4217 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -69,6 +69,7 @@ gb_COMPILERDEFS := \
gb_CFLAGS := \
-Wall \
+ -Wdeclaration-after-statement \
-Wendif-labels \
-Wextra \
-Wshadow \
diff --git a/solenv/gbuild/platform/winmingw.mk b/solenv/gbuild/platform/winmingw.mk
index a1a8233..6d438ff 100644
--- a/solenv/gbuild/platform/winmingw.mk
+++ b/solenv/gbuild/platform/winmingw.mk
@@ -71,6 +71,7 @@ gb_RCFLAGS := \
gb_CFLAGS := \
-Wall \
+ -Wdeclaration-after-statement \
-Wendif-labels \
-Wextra \
-fmessage-length=0 \
diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk
index 45f6901..2e6d66b 100644
--- a/solenv/inc/unxgcc.mk
+++ b/solenv/inc/unxgcc.mk
@@ -135,7 +135,8 @@ CFLAGSOUTOBJ=-o
# -Wshadow does not work for C with nested uses of pthread_cleanup_push:
CFLAGSWARNCC=-Wall -Wextra -Wendif-labels
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
- -Wno-non-virtual-dtor -Woverloaded-virtual
+ -Wno-non-virtual-dtor
+CFLAGSWARNCC+=-Wdeclaration-after-statement
CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror -DLIBO_WERROR
diff --git a/solenv/inc/wntgcci.mk b/solenv/inc/wntgcci.mk
index f62c96a..5fe8bbd 100644
--- a/solenv/inc/wntgcci.mk
+++ b/solenv/inc/wntgcci.mk
@@ -82,6 +82,7 @@ CDEFS+=-D_DLL
CFLAGSWARNCC=-Wall -Wextra -Wendif-labels
CFLAGSWARNCXX=$(CFLAGSWARNCC) -Wshadow -Wno-ctor-dtor-privacy \
-Wno-non-virtual-dtor
+CFLAGSWARNCC+=-Wdeclaration-after-statement
CFLAGSWALLCC=$(CFLAGSWARNCC)
CFLAGSWALLCXX=$(CFLAGSWARNCXX)
CFLAGSWERRCC=-Werror -DLIBO_WERROR
More information about the Libreoffice-commits
mailing list