From eb09adaa9a2accbdc3531bb96447c8e7fbb9f8a9 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Mon, 10 Oct 2011 12:52:10 +0200 Subject: Warn if declaration follows statement in C-files --- solenv/inc/unxgcc.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'solenv/inc/unxgcc.mk') diff --git a/solenv/inc/unxgcc.mk b/solenv/inc/unxgcc.mk index 45f690177ac7..2e6d66b8c92f 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 -- cgit