Skip to content

Commit

Permalink
Fix SWDEV-491378
Browse files Browse the repository at this point in the history
GCC 13 introduces -W(no-)dangling-reference but AMDClang does not
support this yet.
  • Loading branch information
xinyazhang committed Oct 17, 2024
1 parent 36ab4b9 commit 0037c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,8 @@ function(onnxruntime_set_compile_flags target_name)
# because we may mix gcc and hipclang
set(ORT_HIP_WARNING_FLAGS ${ORT_WARNING_FLAGS})
list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-nonnull-compare)
# Unsupported by Clang 18 yet.
list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-dangling-reference)

# float16.h:90:12: error: ‘tmp’ is used uninitialized
list(APPEND ORT_HIP_WARNING_FLAGS -Wno-uninitialized)
Expand Down

0 comments on commit 0037c78

Please sign in to comment.