From 7780cf728879abc9342a2ae45607f47aae67786e Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 19 Jun 2026 10:30:55 +0800 Subject: [PATCH] suppress some warnings --- CMakeLists.txt | 3 +++ Makefile | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40816ed33..b1d98fc9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,9 @@ if (MSVC) add_compile_options("$<$:/utf-8>") add_compile_options("$<$:/bigobj>") add_compile_options("$<$:/bigobj>") +else() + add_compile_options("$<$:-Wno-unused-value>") + add_compile_options("$<$:-Wno-unused-value>") endif() file(GLOB GGML_SOURCES_CUDA "ggml/src/ggml-cuda/*.cu") diff --git a/Makefile b/Makefile index 8233fc2ab..31694bd91 100644 --- a/Makefile +++ b/Makefile @@ -71,8 +71,8 @@ CXXFLAGS += -DGGML_USE_LLAMAFILE endif #lets try enabling everything -CFLAGS += -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -CXXFLAGS += -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable +CFLAGS += -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-value +CXXFLAGS += -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-value LDFLAGS =