diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2022-11-17 03:33:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-16 11:33:10 -0800 |
| commit | 09d8e048d2264d89886cda8e87e8a452d4f913c1 (patch) | |
| tree | de925c032837ae21e7693e3c44a1c825c5fd3e6e /premake5.lua | |
| parent | 8d500475bb11b025960bf211d505540867ce68e7 (diff) | |
Squash warnings (#2515)
* Don't use uname -p
It's not portable (doesn't work on my machine)
* Disable maybe-uninitialized warning on gcc
Only false positives at the moment
* Squash warning in miniz
Allow it to use 64 bit file handing functions with gcc
* Use noreturn c++11 attribute in SLANG_RETURN_NEVER
* Squash uninitialized variable warnings
* Squash const char/char conversion warnings
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/premake5.lua b/premake5.lua index f5a86126e..92243263a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -339,8 +339,9 @@ newoption { filter { "toolset:clang or gcc*", "language:C++" } buildoptions { "-Wno-reorder", "-Wno-class-memaccess"} - filter { "toolset:gcc*"} - buildoptions { "-Wno-implicit-fallthrough" } + filter { "toolset:gcc*" } + buildoptions { "-Wno-implicit-fallthrough", "-Wno-maybe-uninitialized" } + filter { "toolset:clang" } buildoptions { "-Wno-deprecated-register", "-Wno-tautological-compare", "-Wno-missing-braces", "-Wno-undefined-var-template", "-Wno-unused-function", "-Wno-return-std-move", "-Wno-ignored-optimization-argument", "-Wno-unknown-warning-option" } @@ -1501,6 +1502,8 @@ tool "slangd" "external/miniz/miniz_tinfl.c", "external/miniz/miniz_zip.c" } + filter { "system:linux" } + defines { "_LARGEFILE64_SOURCE" } filter { "system:linux or macosx" } links { "dl"} |
