summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-01-05 12:21:47 +0800
committerruki <[email protected]>2017-01-06 17:20:08 +0800
commit06a7207823add9becd9f0929c9ed1b4eb2a1ab44 (patch)
tree0be56e438024a8da15c9e70cd61e25116b2ecd8d
parent2e58f26793dc910c024eeba4adb6d52df26e0e22 (diff)
adjust warning strategy
-rwxr-xr-xxmake/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua
index 83d388721..3dcb5fcf9 100755
--- a/xmake/tools/gcc.lua
+++ b/xmake/tools/gcc.lua
@@ -298,7 +298,7 @@ function compile(sourcefile, objectfile, incdepfile, flags)
end
-- print some warnings
- if warnings and (not ok or option.get("verbose")) then
+ if warnings and option.get("verbose") then
cprint("${yellow}%s", table.concat(warnings, '\n'))
end