aboutsummaryrefslogtreecommitdiff
path: root/cgcc
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-04-20 01:30:04 -0700
committerJosh Triplett <josh@freedesktop.org>2007-04-20 01:30:04 -0700
commit4e32ff4d89dc31ce308f4d023e826dd56eb234fe (patch)
tree7244152e3bc205c548a81feba2a667d01359340e /cgcc
parentFix comment to reference #weak_define rather than #ifndef, matching code (diff)
downloadsparse-4e32ff4d89dc31ce308f4d023e826dd56eb234fe.tar.gz
sparse-4e32ff4d89dc31ce308f4d023e826dd56eb234fe.tar.bz2
sparse-4e32ff4d89dc31ce308f4d023e826dd56eb234fe.zip
Teach cgcc about -Wtransparent-union and -Wno-transparent-union
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 43fdfcd..e7d79cf 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)$/;
+ return 1 if $arg =~ /^-W(no-?)?(default-bitfield-sig|bitwise|typesign|transparent-union)$/;
return 0;
}