summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cparser.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-03 23:14:21 +0800
committerruki <[email protected]>2019-01-03 13:26:08 +0800
commita86d666ba3095bf9da443e782333b66c3aced59d (patch)
tree331d37cfb3d1bc55e5bf434f00f5fa2789336a83 /xmake/modules/core/tools/cparser.lua
parent7da17d16ef3bf08d1b683f95fcec1c6d48ecdee4 (diff)
fix some warning info
Diffstat (limited to 'xmake/modules/core/tools/cparser.lua')
-rw-r--r--xmake/modules/core/tools/cparser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua
index ac1f6bb11..a239073d3 100644
--- a/xmake/modules/core/tools/cparser.lua
+++ b/xmake/modules/core/tools/cparser.lua
@@ -231,7 +231,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
-- print some warnings
if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then
- cprint("${yellow}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
+ cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
end
end
}