Skip to content

Commit

Permalink
Shut off GCC invalif dangling reference warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Sep 5, 2024
1 parent 7e26abc commit b1e30be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/noa/compiler/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ function(noa_add_default_options visibility target)
-Wcomma
-Wno-exit-time-destructors
-Wrange-loop-analysis)
elseif(NOA_COMPILER_GCC)
# Newer versions of GCC (i.e. 14) seem to print a lot of false-positives here
target_compile_options("${target}" ${visibility} -Wno-dangling-reference)
endif()
endfunction()

0 comments on commit b1e30be

Please sign in to comment.