summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-07-06 03:18:14 +0800
committerGitHub <noreply@github.com>2023-07-05 15:18:14 -0400
commit6063304cb8d73d430e7ef81c62cd9822302fcc19 (patch)
tree8174e0d5acab31ce057db7b73e8f94b09d786a46 /premake5.lua
parent93948b564d04eda555bf96025e89853be86cff8a (diff)
Squash some warnings (#2956)
* restrict -Wno-assume to clang (gcc does not have this warning) * Add move where possible Annoyingly this warns for c++17, but will not be necessary with c++20 * Do not partially initialize struct * Remove unused variable * Silence unused var warning It is actually still referenced from an uninstantiated (for now) template * Use unused var --------- Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua
index 20bb6b364..edcd56b4e 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -374,8 +374,10 @@ workspace "slang"
}
filter { "toolset:gcc*", "language:C++" }
buildoptions { "-Wno-class-memaccess" }
+ filter { "toolset:clang", "language:C++" }
+ buildoptions { "-Wno-assume" }
filter { "toolset:clang or gcc*", "language:C++" }
- buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof", "-Wno-assume" }
+ buildoptions { "-Wno-reorder", "-Wno-invalid-offsetof" }
-- When compiling the debug configuration, we want to turn
-- optimization off, make sure debug symbols are output,