On 2024-08-11 11:50, Diederik de Haas wrote:
If you can make the argument that a specific warning can be ignored, you could override that specific warning with a clear explanation why that'sOK in this particular case. This patch OTOH essentially says to ignore ALL warnings.
Please find an improved patch attached to this message Best, -rt
From: Reinhard Tartler <siret...@tauware.de> Date: Sat, 3 Aug 2024 10:46:50 -0400 Subject: don't fail on maybe-uninitialized warnings Bugs-Upstream: https://github.com/WasmEdge/WasmEdge/issues/3640 This warning was introduced with gcc 14. It is likely a false positive. --- cmake/Helper.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Helper.cmake b/cmake/Helper.cmake index f9cdcf2..b38c5bf 100644 --- a/cmake/Helper.cmake +++ b/cmake/Helper.cmake @@ -40,6 +40,7 @@ else() if(NOT WASMEDGE_PLUGIN_WASI_NN_GGML_LLAMA_CUBLAS) list(APPEND WASMEDGE_CFLAGS -Werror + -Wno-error=maybe-uninitialized -Wno-error=pedantic ) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13)