summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/clang.lua1
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
-rw-r--r--xmake/modules/core/tools/tcc.lua4
3 files changed, 4 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua
index 549bdaae1..457de3b60 100644
--- a/xmake/modules/core/tools/clang.lua
+++ b/xmake/modules/core/tools/clang.lua
@@ -118,6 +118,7 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
+ , allextra = "-Wall -Wextra"
, everything = "-Weverything"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 4bd8706ed..6c55597ac 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -124,9 +124,9 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
+ , allextra = "-Wall -Wextra"
, everything = "-Weverything -Wall -Wextra -Weffc++"
, error = "-Werror"
- , extra = "-Wextra"
}
-- get warning for nvcc
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua
index 271792ffe..727bc28fb 100644
--- a/xmake/modules/core/tools/tcc.lua
+++ b/xmake/modules/core/tools/tcc.lua
@@ -78,8 +78,8 @@ function nf_warning(self, level)
, less = "-W1"
, more = "-W3"
, all = "-Wall"
- , extra = "-Wunsupported"
- , everything = "-Wall -Wunsupported -Wwrite-strings"
+ , allextra = "-Wall -Wunsupported -Wwrite-strings -Wimplicit-function-declaration"
+ , everything = "-Wall -Wunsupported -Wwrite-strings -Wimplicit-function-declaration"
, error = "-Werror"
}
return maps[level]