summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2020-01-02 12:29:41 +0100
committer yz70s <yz70s@users.noreply.github.com>2020-01-02 12:36:09 +0100
commit00ac4f46f5ac2e5f6b801ca8169ea2fca8748207 (patch)
tree01d4365545e7a444ef5189592065f294b6c315ea /scripts/src
parentc6c0db13658a17125800b12359388ced95828d2e (diff)
Lower number of warnings disabled with visual studio from 71 to 27 (nw)
And most of the remaining ones could be removed with simple code modifications.
Diffstat (limited to 'scripts/src')
-rw-r--r--scripts/src/3rdparty.lua30
1 files changed, 7 insertions, 23 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index db0e89ca862..bec2382971d 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -51,6 +51,7 @@ end
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter
"/wd4127", -- warning C4127: conditional expression is constant
"/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data
+ "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
}
if _OPTIONS["vs"]=="intel-15" then
buildoptions {
@@ -60,10 +61,6 @@ if _OPTIONS["vs"]=="intel-15" then
"/Qwd869", -- remark #869: parameter "xxx" was never referenced
}
end
- configuration { "vs201*" }
- buildoptions {
- "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
- }
configuration { }
files {
@@ -622,6 +619,7 @@ project "flac"
"/wd4127", -- warning C4127: conditional expression is constant
"/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter
+ "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
"/wd4702", -- warning C4702: unreachable code
}
if _OPTIONS["vs"]=="intel-15" then
@@ -639,11 +637,6 @@ end
"-include stdint.h"
}
- configuration { "vs201*" }
- buildoptions {
- "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
- }
-
configuration { "vsllvm" }
buildoptions {
"-Wno-unused-function",
@@ -727,17 +720,14 @@ project "7z"
configuration { "vs*" }
buildoptions {
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter
+ "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
+ "/wd4457", -- warning C4457: declaration of 'xxx' hides function parameter
}
if _OPTIONS["vs"]=="intel-15" then
buildoptions {
"/Qwd869", -- remark #869: parameter "xxx" was never referenced
}
end
- configuration { "vs201*" }
- buildoptions {
- "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
- "/wd4457", -- warning C4457: declaration of 'xxx' hides function parameter
- }
configuration { "winstore*" }
forcedincludes {
MAME_DIR .. "src/osd/uwp/uwpcompat.h"
@@ -1024,6 +1014,7 @@ project "portmidi"
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter
"/wd4127", -- warning C4127: conditional expression is constant
"/wd4244", -- warning C4244: 'argument' : conversion from 'xxx' to 'xxx', possible loss of data
+ "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
"/wd4706", -- warning C4706: assignment within conditional expression
}
if _OPTIONS["vs"]=="intel-15" then
@@ -1035,11 +1026,6 @@ if _OPTIONS["vs"]=="intel-15" then
}
end
- configuration { "vs201*" }
- buildoptions {
- "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
- }
-
configuration { "linux*" }
defines {
"PMALSA=1",
@@ -1451,6 +1437,8 @@ project "portaudio"
"/wd4389", -- warning C4389: 'operator' : signed/unsigned mismatch
"/wd4189", -- warning C4189: 'xxx' : local variable is initialized but not referenced
"/wd4127", -- warning C4127: conditional expression is constant
+ "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
+ "/wd4312", -- warning C4312: 'type cast': conversion from 'UINT' to 'HWAVEIN' of greater size
}
if _OPTIONS["vs"]=="intel-15" then
buildoptions {
@@ -1460,10 +1448,6 @@ project "portaudio"
"/Qwd1879", -- warning #1879: unimplemented pragma ignored
}
end
- configuration { "vs2015*" }
- buildoptions {
- "/wd4456", -- warning C4456: declaration of 'xxx' hides previous local declaration
- }
configuration { "vsllvm" }
buildoptions {