File 001_pi-hole-ftl_fix_warnings_as_errors.patch of Package pi-hole-ftl
diff -uNr pi-hole-ftl-5.15.20220702T124009~ed35b17.orig/src/CMakeLists.txt pi-hole-ftl-5.15.20220702T124009~ed35b17/src/CMakeLists.txt
--- pi-hole-ftl-5.15.20220702T124009~ed35b17.orig/src/CMakeLists.txt 2022-07-02 13:40:09.000000000 +0200
+++ pi-hole-ftl-5.15.20220702T124009~ed35b17/src/CMakeLists.txt 2022-07-06 09:28:17.908654000 +0200
@@ -84,7 +84,7 @@
else()
set(EXTRAWARN_GCC8 "")
endif()
-set(EXTRAWARN "-Werror -Waddress -Wlogical-op -Wmissing-field-initializers -Woverlength-strings -Wformat -Wformat-nonliteral -Wuninitialized -Wswitch-enum -Wshadow -Wfloat-equal -Wbad-function-cast -Wwrite-strings -Wparentheses -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Winline ${EXTRAWARN_GCC8}")
+set(EXTRAWARN "-Waddress -Wlogical-op -Wmissing-field-initializers -Woverlength-strings -Wformat -Wformat-nonliteral -Wuninitialized -Wswitch-enum -Wshadow -Wfloat-equal -Wbad-function-cast -Wwrite-strings -Wparentheses -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Winline ${EXTRAWARN_GCC8}")
separate_arguments(EXTRAWARN)
# Do we want to compile a statically linked musl executable?