linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Make cgcc filter out all sparse warning related options
@ 2007-08-22  9:48 Yura Pakhuchiy
  2007-08-23  2:17 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Yura Pakhuchiy @ 2007-08-22  9:48 UTC (permalink / raw)
  To: Josh Triplett; +Cc: linux-sparse

Make cgcc filter out all sparse warning related options.

Signed-off-by: Yura Pakhuchiy <pakhuchiy@gmail.com>

diff --git a/cgcc b/cgcc
index 2b9f89c..51fbd86 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-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|old-initializer|non-pointer-null)$/;
+    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-address-space|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;
 }


-- 
Best regards,
        Yura

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-23  2:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22  9:48 [PATCH] Make cgcc filter out all sparse warning related options Yura Pakhuchiy
2007-08-23  2:17 ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).