From 6138de5f084cafdc98381237c2d8bed7c8804f1c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 29 Sep 2023 19:10:22 -0400 Subject: Fix for problem with OrderedHashSet causing crash (#3251) * Fix for problem with OrderedHashSet causing crashes during running tests on on g++ 7.3 * Fix typo --- premake5.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'premake5.lua') diff --git a/premake5.lua b/premake5.lua index 3e4ac1100..98bb2b6a0 100644 --- a/premake5.lua +++ b/premake5.lua @@ -403,6 +403,9 @@ workspace "slang" } filter { "toolset:gcc*", "language:C++" } buildoptions { "-Wno-class-memaccess" } + -- If a function returns an address/reference to a local, we want it to produce an error, because + -- it probably means something very bad. + buildoptions { "-Werror=return-local-addr" } filter { "toolset:clang", "language:C++" } buildoptions { "-Wno-assume" } filter { "toolset:clang or gcc*", "language:C++" } -- cgit v1.2.3