cc: filter out -Wno-unused-but-set-variable

Fixes Homebrew/homebrew#35750.
This commit is contained in:
Misty De Meo 2015-01-14 10:17:24 -08:00
parent 001c238606
commit 53d848e364

View File

@ -155,7 +155,8 @@ class Cmd
when /^-g\d?/, /^-gstabs\d+/, '-gstabs+', /^-ggdb\d?/, '-gdwarf-2',
/^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/,
/^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp',
'-pedantic', '-pedantic-errors', '-Wno-long-double'
'-pedantic', '-pedantic-errors', '-Wno-long-double',
'-Wno-unused-but-set-variable'
when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', '-fno-defer-pop',
'-mno-dynamic-no-pic', '-fearly-inlining', /^-f(?:no-)?inline-functions-called-once/,
/^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks',