From 09d8e048d2264d89886cda8e87e8a452d4f913c1 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 17 Nov 2022 03:33:10 +0800 Subject: 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 --- premake5.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'premake5.lua') 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"} -- cgit v1.2.3