summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/gcc/has_flags.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/gcc/has_flags.lua b/xmake/modules/core/tools/gcc/has_flags.lua
index d4db0461f..32662e1a0 100644
--- a/xmake/modules/core/tools/gcc/has_flags.lua
+++ b/xmake/modules/core/tools/gcc/has_flags.lua
@@ -72,12 +72,6 @@ function _check_from_knownargs(flags, opt, islinker)
if known_flags:has(flag) then
return true
end
- -- check flags with known prefixes
- if not islinker then
- if flag:startswith("-Wno-") then -- -Wno-xxx is always silently accepted
- return true
- end
- end
end
-- attempt to check it from the argument list