aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 2ce4bf73d..c1adc5699 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -149,6 +149,9 @@ class Cmd
"-fuse-linker-plugin"
# clang doesn't support these flags
args << arg unless tool =~ /^clang/
+ when "-Wno-deprecated-register"
+ # older gccs don't support these flags
+ args << arg unless tool =~ /^gcc-4.[02]/
when /^-W[alp],/, /^-Wno-/
args << arg
when /^-W.*/