mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
CMake: disable deprecated function warnings
LLVM 14 deprecated a bunch of C API functions in preparation for opaque pointer changes. However, they did not actually implement opaque pointer semantics, so the deprecations are largely masturbatory. I have nothing against masturbation, I am just busy trying to get the self hosted compiler done for 0.10.0, so we will come back to this later.
This commit is contained in:
parent
ceb3819c42
commit
41a0b81731
@ -854,7 +854,7 @@ endif()
|
||||
if(MSVC)
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS}")
|
||||
else()
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS} -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment")
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS} -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=type-limits -Wno-missing-braces -Wno-comment -Wno-deprecated-declarations")
|
||||
if(MINGW)
|
||||
set(EXE_CFLAGS "${EXE_CFLAGS} -Wno-format")
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user