Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit a036077

Browse files
committed
uemu: Enable -Wno-unused-result
1 parent e378e40 commit a036077

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ set(CMAKE_C_STANDARD 17)
2323
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2424

2525
# Compiler flags
26-
set(CMAKE_C_FLAGS_DEBUG "-g -O0 -Wall -Werror -Wno-unused-command-line-argument -Wno-implicit-fallthrough")
27-
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Werror -Wno-sign-compare -Wno-unused-command-line-argument -Wno-implicit-fallthrough")
28-
set(CMAKE_C_FLAGS_RELEASE "-O3 -Wall -Werror -flto -Wno-unused-command-line-argument -Wno-implicit-fallthrough")
29-
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -Werror -Wno-sign-compare -flto -Wno-unused-command-line-argument -Wno-implicit-fallthrough")
26+
set(CMAKE_C_FLAGS_DEBUG "-g -O0 -Wall -Werror -Wno-unused-command-line-argument -Wno-implicit-fallthrough -Wno-unused-result")
27+
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Werror -Wno-sign-compare -Wno-unused-command-line-argument -Wno-implicit-fallthrough -Wno-unused-result")
28+
set(CMAKE_C_FLAGS_RELEASE "-O3 -Wall -Werror -flto -Wno-unused-command-line-argument -Wno-implicit-fallthrough -Wno-unused-result")
29+
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -Werror -Wno-sign-compare -flto -Wno-unused-command-line-argument -Wno-implicit-fallthrough -Wno-unused-result")
3030

3131
# Prefer LLVM tools when using Clang (helps with -flto)
3232
if (CMAKE_C_COMPILER_ID MATCHES "Clang")

0 commit comments

Comments
 (0)