Skip to content

Commit f855b36

Browse files
committed
Limit some disablewarnings to system:windows
1 parent 39a9ff5 commit f855b36

File tree

8 files changed

+33
-27
lines changed

8 files changed

+33
-27
lines changed

vendor/cryptopp/premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ project "cryptopp"
218218
"cpuid64.asm"
219219
}
220220

221-
filter { "system:windows" }
221+
filter "system:windows"
222222
linkoptions { "/ignore:4221" }
223223
disablewarnings { "4005" }

vendor/json-c/premake5.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ project "json-c"
22
language "C++"
33
kind "StaticLib"
44
targetname "json-c"
5-
disablewarnings {
6-
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
7-
"4018", -- warning C4018: '<': signed/unsigned mismatch
8-
"4996", -- use of symbol with __declspec(deprecated)
9-
}
105

116
includedirs { "." }
127
defines { "_LIB" }
@@ -23,6 +18,13 @@ project "json-c"
2318
"*.c"
2419
}
2520

21+
filter "system:windows"
22+
disablewarnings {
23+
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
24+
"4018", -- warning C4018: '<': signed/unsigned mismatch
25+
"4996", -- use of symbol with __declspec(deprecated)
26+
}
27+
2628
filter "system:macosx"
2729
defines {"HAVE_XLOCALE_H"}
2830

vendor/libspeex/premake5.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ project "libspeex"
33
kind "StaticLib"
44
targetname "libspeex"
55

6-
disablewarnings {
7-
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
8-
"4305", -- warning C4305: 'initializing': truncation from '?' to '?'
9-
"4018", -- warning C4018: '<': signed/unsigned mismatch
10-
}
11-
126
defines {
137
"HAVE_CONFIG_H"
148
}
@@ -41,6 +35,13 @@ project "libspeex"
4135
"libspeexdsp/fftwrap.c",
4236
}
4337

38+
filter "system:windows"
39+
disablewarnings {
40+
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
41+
"4305", -- warning C4305: 'initializing': truncation from '?' to '?'
42+
"4018", -- warning C4018: '<': signed/unsigned mismatch
43+
}
44+
4445
filter "architecture:not x86"
4546
flags { "ExcludeFromBuild" }
4647

vendor/lunasvg/premake5.lua

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ project "lunasvg"
77
floatingpoint "Fast"
88
rtti "Off"
99

10-
disablewarnings {
11-
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
12-
"4018", -- warning C4018: '<': signed/unsigned mismatch
13-
}
14-
1510
defines {
1611
"PLUTOVG_BUILD",
1712
"LUNASVG_BUILD",
@@ -42,7 +37,14 @@ project "lunasvg"
4237
"include"
4338
}
4439

40+
filter "system:windows"
41+
disablewarnings {
42+
"4244", -- warning C4244: '=': conversion from '?' to '?', possible loss of data
43+
"4018", -- warning C4018: '<': signed/unsigned mismatch
44+
}
45+
4546
filter "architecture:not x86"
4647
flags { "ExcludeFromBuild" }
48+
4749
filter "system:not windows"
4850
flags { "ExcludeFromBuild" }

vendor/pcre/premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ project "pcre"
4040
defines { "HAVE_STRTOLL" }
4141
kind "StaticLib"
4242

43-
filter {"system:windows"}
43+
filter "system:windows"
4444
linkoptions { "/ignore:4217", "/ignore:4049" }
4545
disablewarnings { "4251" }

vendor/portaudio/premake5.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ project "portaudio"
33
kind "StaticLib"
44
targetname "portaudio"
55

6-
disablewarnings { "4996" }
7-
86
vpaths {
97
["Headers/*"] = "**.h",
108
["Sources/*"] = "**.c",
@@ -17,8 +15,11 @@ project "portaudio"
1715
"*.c"
1816
}
1917

18+
filter "system:windows"
19+
disablewarnings { "4996" }
20+
2021
filter "architecture:not x86"
2122
flags { "ExcludeFromBuild" }
2223

2324
filter "system:not windows"
24-
flags { "ExcludeFromBuild" }
25+
flags { "ExcludeFromBuild" }

vendor/sqlite/premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ project "sqlite"
1717

1818
defines { "SQLITE_ENABLE_MATH_FUNCTIONS", "SQLITE_ENABLE_JSON1" }
1919

20-
filter {"system:windows"}
20+
filter "system:windows"
2121
disablewarnings { "4996" }

vendor/unrar/premake5.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ project "unrar"
22
language "C++"
33
kind "StaticLib"
44
targetname "unrar"
5-
disablewarnings {
6-
"4996", -- use of symbol with __declspec(deprecated)
7-
}
85

96
defines { "RARDLL" }
107

@@ -70,5 +67,8 @@ project "unrar"
7067
"ui.cpp"
7168
}
7269

73-
filter "system:Windows*"
74-
files { "isnt.cpp" }
70+
filter "system:windows"
71+
files { "isnt.cpp" }
72+
disablewarnings {
73+
"4996", -- use of symbol with __declspec(deprecated)
74+
}

0 commit comments

Comments
 (0)