From e7c6eac60748b6e2e73387ffbc040f916e8eda7d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 29 Nov 2024 12:40:03 +0200 Subject: [PATCH] [NFSD] Disable a clang warning --- base/services/nfsd/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/services/nfsd/CMakeLists.txt b/base/services/nfsd/CMakeLists.txt index 77054777c8c..3aeb58722c0 100644 --- a/base/services/nfsd/CMakeLists.txt +++ b/base/services/nfsd/CMakeLists.txt @@ -55,6 +55,9 @@ else() # FIXME: Tons of warnings. target_compile_options(nfsd PRIVATE "-w") endif() +if(CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_compile_options(nfsd PRIVATE -Wno-incompatible-function-pointer-types) +endif() target_link_libraries(nfsd oldnames)