From ef5cf74c8e31fbda01b75187e6c934331ad46009 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 25 Jan 2024 22:59:36 +0800 Subject: enable warning output by default --- xmake/core/project/policy.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/project/policy.lua b/xmake/core/project/policy.lua index 84f29dd06..e7212189e 100644 --- a/xmake/core/project/policy.lua +++ b/xmake/core/project/policy.lua @@ -48,8 +48,8 @@ function policy.policies() ["build.ccache"] = {description = "Enable C/C++ build cache.", type = "boolean"}, -- Use global storage if build.ccache is enabled ["build.ccache.global_storage"] = {description = "Use global storge if build.ccache is enabled.", type = "boolean"}, - -- Enable build warning output, it's disabled by default and we need `xmake -w/-vD` to look at it. - ["build.warning"] = {description = "Enable build warning output.", type = "boolean"}, + -- Enable build warning output, it's enabled by default. + ["build.warning"] = {description = "Enable build warning output.", default = true, type = "boolean"}, -- Enable LTO linker-time optimization for c/c++ building. ["build.optimization.lto"] = {description = "Enable LTO linker-time optimization for c/c++ building.", type = "boolean"}, -- Enable address sanitizer for c/c++ building. -- cgit v1.3.1