aboutsummaryrefslogtreecommitdiff
path: root/cgcc
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-05-01 20:54:02 -0700
committerJosh Triplett <josh@freedesktop.org>2007-05-01 20:54:02 -0700
commit0a393b6937e03bc94e7f7760d4dcb913394fdd09 (patch)
tree7ea3fbde20dbcb4d78060941541489e8a83fd2ae /cgcc
parentMake cgcc not pass -Wall to sparse even if passing it to cc (diff)
downloadsparse-0a393b6937e03bc94e7f7760d4dcb913394fdd09.tar.gz
sparse-0a393b6937e03bc94e7f7760d4dcb913394fdd09.tar.bz2
sparse-0a393b6937e03bc94e7f7760d4dcb913394fdd09.zip
Teach cgcc about all currently existing sparse warning options
Ideally these wouldn't need to exist in more than one place. 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 6eef969..0099c9f 100755
--- a/cgcc
+++ b/cgcc
@@ -64,7 +64,7 @@ exit 0;
sub check_only_option {
my ($arg) = @_;
- return 1 if $arg =~ /^-W(no-?)?(default-bitfield-sig|bitwise|typesign|transparent-union)$/;
+ return 1 if $arg =~ /^-W(no-?)?(default-bitfield-sig|one-bit-signed-bitfield|cast-truncate|bitwise|typesign|context|undefined-preprocessor|ptr-subtraction-blows|cast-to-address-space|decl|transparent-union|address-space|enum-mismatch|do-while)$/;
return 0;
}