Skip to content

Commit 9cde7fb

Browse files
committed
[Misc] Suppress gcc 13 warning in spdlog/fmt
* See fmtlib/fmt#3415 Signed-off-by: Shen-Ta Hsieh <[email protected]>
1 parent 0a9962b commit 9cde7fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmake/Helper.cmake

+7-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ else()
3939

4040
if(NOT WASMEDGE_PLUGIN_WASI_NN_GGML_LLAMA_CUBLAS)
4141
list(APPEND WASMEDGE_CFLAGS
42-
-Werror
43-
-Wno-error=pedantic
42+
-Werror
43+
-Wno-error=pedantic
4444
)
45+
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13)
46+
list(APPEND WASMEDGE_CFLAGS
47+
-Wno-error=dangling-reference
48+
)
49+
endif()
4550
endif()
4651

4752
if(WASMEDGE_ENABLE_UB_SANITIZER)

0 commit comments

Comments
 (0)