summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-22 00:49:48 +0800
committerruki <[email protected]>2019-05-21 22:58:53 +0800
commita8bd687896b419e5af946844bc08138e48613275 (patch)
treeb4cbae58ebcc3a2f2caf5d7c74c543cac94af024
parenta3c9277b29176637c74c5feb3a7018e5c75a6d38 (diff)
remove extra warning level
-rw-r--r--xmake/modules/core/tools/cl.lua1
-rw-r--r--xmake/modules/core/tools/clang.lua1
-rw-r--r--xmake/modules/core/tools/cparser.lua1
-rw-r--r--xmake/modules/core/tools/gcc.lua1
-rw-r--r--xmake/modules/core/tools/nvcc.lua3
5 files changed, 0 insertions, 7 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 3c8699c7e..08a17ff8e 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -125,7 +125,6 @@ function nf_warning(self, level)
, less = "-W1"
, more = "-W3"
, all = "-W3" -- = "-Wall" will enable too more warnings
- , extra = "-W4"
, everything = "-Wall"
, error = "-WX"
}
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua
index 693dad71a..b7291b285 100644
--- a/xmake/modules/core/tools/clang.lua
+++ b/xmake/modules/core/tools/clang.lua
@@ -76,7 +76,6 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
- , extra = "-Wextra"
, everything = "-Weverything"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua
index 6e2541c32..63ba9dfd8 100644
--- a/xmake/modules/core/tools/cparser.lua
+++ b/xmake/modules/core/tools/cparser.lua
@@ -102,7 +102,6 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
- , extra = "-Wextra"
, everything = "-Wextra -Wall"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 997d3109f..99daa755a 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -121,7 +121,6 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
- , extra = "-Wextra"
, everything = "-Wall -Wextra -Weffc++"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 1032c4cbf..12c0b9209 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -72,7 +72,6 @@ function nf_warning(self, level)
local maps =
{
none = "-w"
- , extra = "-Wreorder"
, everything = "-Wreorder"
, error = "-Werror"
}
@@ -84,7 +83,6 @@ function nf_warning(self, level)
, less = "-W1"
, more = "-W3"
, all = "-W3" -- = "-Wall" will enable too more warnings
- , extra = "-W4"
, everything = "-Wall"
, error = "-WX"
}
@@ -100,7 +98,6 @@ function nf_warning(self, level)
, less = "-Wall"
, more = "-Wall"
, all = "-Wall"
- , extra = "-Wextra"
, everything = "-Weverything -Wall -Wextra -Weffc++"
, error = "-Werror"
}