Skip to content

Commit

Permalink
[Misc] Suppress gcc 13 warning in spdlog/fmt
Browse files Browse the repository at this point in the history
* See fmtlib/fmt#3415

Signed-off-by: Shen-Ta Hsieh <[email protected]>
  • Loading branch information
ibmibmibm authored and hydai committed Nov 3, 2023
1 parent e3eb828 commit 949eadb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/Helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ else()

if(NOT WASMEDGE_PLUGIN_WASI_NN_GGML_LLAMA_CUBLAS)
list(APPEND WASMEDGE_CFLAGS
-Werror
-Wno-error=pedantic
-Werror
-Wno-error=pedantic
)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13)
list(APPEND WASMEDGE_CFLAGS
-Wno-error=dangling-reference
)
endif()
endif()

if(WASMEDGE_ENABLE_UB_SANITIZER)
Expand Down

0 comments on commit 949eadb

Please sign in to comment.