summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-26 13:57:53 +0800
committerruki <[email protected]>2025-01-26 13:57:53 +0800
commit54aea530c11f3325a8f004c8b769ea51d9f90cf1 (patch)
tree3939e799f14e448487176883897aa187cf05d972
parent6824ea3a0ad7eb1d488c9f4a703efcba1be57f1a (diff)
improve warns
-rw-r--r--xmake/modules/core/tools/iccarm.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/iccarm.lua b/xmake/modules/core/tools/iccarm.lua
index 2d11b9d27..4764761a1 100644
--- a/xmake/modules/core/tools/iccarm.lua
+++ b/xmake/modules/core/tools/iccarm.lua
@@ -140,7 +140,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and policy.build_warnings(opt) then
+ if warnings and #warnings > 0 and not warnings:find("Warnings: none", 1, true) and policy.build_warnings(opt) then
if progress.showing_without_scroll() then
print("")
end