From 41a0b8173147e403c23b2911bdca1438cdd920b6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 1 Jul 2022 19:17:09 -0700 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b28748fba4..3d4366f0da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()