summaryrefslogtreecommitdiff
blob: f96a9796939027df30c651f7cfb24230a832e4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://bugs.gentoo.org/524048

ignore warnings w/newer glibc-2.20

patch by Dmitry Derevyanko

--- a/ccdep.pl
+++ b/ccdep.pl
@@ -233,6 +233,9 @@
   } elsif ($S=~/\A([^:]+):\d+:(\d+:)? warning: this is the location of /) {
     # ^^^ gcc-3.1
     undef $included_from;
+  } elsif ($S=~/\A([^:]+):\d+:(\d+:)? warning: .*\bdeprecated\b/) {
+    # Example: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
+    undef $included_from;
   } elsif ($S=~/: No such file or directory$/) {  # Depends on $ENV{LC_ALL}.
     # ^^^ gcc-3.3
     undef $included_from;