zig/zig-0.10.1-llvm-15.patch

12 lines
604 B
Diff

--- zig-0.10.1/CMakeLists.txt.orig 2023-03-18 10:33:29.545883623 +0100
+++ zig-0.10.1/CMakeLists.txt 2023-03-18 10:33:43.992805754 +0100
@@ -889,7 +889,7 @@
if(MSVC)
set(EXE_CFLAGS "${EXE_CFLAGS} /w")
else()
- set(EXE_CFLAGS "${EXE_CFLAGS} -Werror -Wall")
+ set(EXE_CFLAGS "${EXE_CFLAGS} -Werror -Wall -Wno-error=maybe-uninitialized")
# fallthrough support was added in GCC 7.0
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0)
set(EXE_CFLAGS "${EXE_CFLAGS} -Werror=implicit-fallthrough")