These flags are accepted without error but produce an annoying
warning. Filtering them out makes the build less noisy.
Signed-off-by: Mans Rullgard <mans@mansr.com>
... | ... |
@@ -2069,6 +2069,7 @@ elif $cc -v 2>&1 | grep -q 'PathScale\|Path64'; then |
2069 | 2069 |
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' |
2070 | 2070 |
speed_cflags='-O2' |
2071 | 2071 |
size_cflags='-Os' |
2072 |
+ filter_cflags='filter_out -Wdisabled-optimization' |
|
2072 | 2073 |
elif $cc -v 2>&1 | grep -q Open64; then |
2073 | 2074 |
cc_type=open64 |
2074 | 2075 |
cc_version=__OPEN64__ |
... | ... |
@@ -2077,6 +2078,7 @@ elif $cc -v 2>&1 | grep -q Open64; then |
2077 | 2077 |
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' |
2078 | 2078 |
speed_cflags='-O2' |
2079 | 2079 |
size_cflags='-Os' |
2080 |
+ filter_cflags='filter_out -Wdisabled-optimization|-Wtype-limits|-fno-signed-zeros' |
|
2080 | 2081 |
fi |
2081 | 2082 |
|
2082 | 2083 |
test -n "$cc_type" && enable $cc_type || |