diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-10 12:52:10 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-10-10 12:52:43 +0200 |
commit | eb09adaa9a2accbdc3531bb96447c8e7fbb9f8a9 (patch) | |
tree | 6cd6592bf82f40b8183a286a1d0585e5a1b6badf /solenv/inc/unxgcc.mk | |
parent | 6a45259834818dc819f4eb63043d0ea2b3416ac2 (diff) |
Warn if declaration follows statement in C-files
Diffstat (limited to 'solenv/inc/unxgcc.mk')
-rw-r--r-- | solenv/inc/unxgcc.mk | 3 |
1 files changed, 2 insertions, 1 deletions
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 |