Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding more GCC/G++ warning flags for --cage

  • Loading branch information...
commit 857acac801b3a775d4c34d5278b4ef263373f000 1 parent dbc3edb
@petdance petdance authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/auto/warnings.pm
View
6 config/auto/warnings.pm
@@ -172,8 +172,10 @@ sub _init {
$gpp->{'basic'} = [ @gcc_or_gpp ];
my @gcc_or_gpp_cage = qw(
+ -pedantic
-std=c89
-Werror=implicit-function-declaration
+ -Wfloat-equal
-Wformat=2
-Wlarger-than-4096
-Wlong-long
@@ -182,11 +184,15 @@ sub _init {
-Wno-format-extra-args
-Wno-import
-Wredundant-decls
+ -Wshadow
-Wstrict-overflow=5
-Wsuggest-attribute=const
-Wsuggest-attribute=noreturn
-Wsuggest-attribute=pure
+ -Wtraditional
+ -Wtrampolines
-Wunreachable-code
+ -Wunsafe-loop-optimizations
-Wunused
-Wunused-function
-Wunused-label
Please sign in to comment.
Something went wrong with that request. Please try again.