Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmake/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ function(set_default_compile_options target)
-Wno-invalid-offsetof
-Wno-newline-eof
-Wno-return-std-move
# Enabled warnings:
# Allowed warnings:
# If a function returns an address/reference to a local, we want it to
# produce an error, because it probably means something very bad.
-Werror=return-local-addr
# Allow unused variables with a pattern of `if (auto v = as<...>(...))`.
# This pattern is very common in Slang code base.
-Wno-error=unused-but-set-variable
# Some warnings which are on by default in MSVC
-Wnarrowing
)
Expand Down
Loading