aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgcc
diff options
authorJosh Triplett <josh@freedesktop.org>2007-08-31 14:36:16 -0700
committerJosh Triplett <josh@freedesktop.org>2007-08-31 14:40:41 -0700
commit4c658b6270d4ba1ab5f574801d06ee58505690e9 (patch)
treee71e5aa50082e77f25ded87cf3a15f81e1c0786c /cgcc
parent78bb259f64e5c2deafe520af3349314ec4aa84e9 (diff)
downloadsparse-dev-4c658b6270d4ba1ab5f574801d06ee58505690e9.tar.gz
cgcc: Sparse accepts -Wundef, not -Wundefined-preprocessor
cgcc's regex of Sparse warning options listed -Wundefined-preprocessor, which doesn't exist; change it to -Wundef. Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'cgcc')
-rwxr-xr-xcgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index 7de5e470..9acf4983 100755
--- a/cgcc
+++ b/cgcc
@@ -69,7 +69,7 @@ exit 0;
sub check_only_option {
my ($arg) = @_;
- return 1 if $arg =~ /^-W(no-?)?(default-bitfield-sign|one-bit-signed-bitfield|cast-truncate|bitwise|typesign|context|undefined-preprocessor|ptr-subtraction-blows|cast-to-as|decl|transparent-union|address-space|enum-mismatch|do-while|old-initializer|non-pointer-null|paren-string|return-void)$/;
+ return 1 if $arg =~ /^-W(no-?)?(default-bitfield-sign|one-bit-signed-bitfield|cast-truncate|bitwise|typesign|context|undef|ptr-subtraction-blows|cast-to-as|decl|transparent-union|address-space|enum-mismatch|do-while|old-initializer|non-pointer-null|paren-string|return-void)$/;
return 1 if $arg =~ /^-v(no-?)?(entry|dead)$/;
return 0;
}