gentoo/dev-util/ostree/files/ostree-2024.8-Werror.patch
Arthur Zamarin ac611942fe
dev-util/ostree: add 2024.8, handle -Werror
Closes: https://bugs.gentoo.org/925361
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-09-20 17:32:02 +03:00

36 lines
1.1 KiB
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -29,32 +29,6 @@ dnl automake variables we want in pkg-config
pkglibexecdir=$libexecdir/$PACKAGE
AC_SUBST(pkglibexecdir)
-AS_IF([echo "$CFLAGS" | grep -q -E -e '-Werror($| )'], [], [
-CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
- -pipe \
- -Wall \
- -Werror=shadow \
- -Werror=empty-body \
- -Werror=strict-prototypes \
- -Werror=missing-prototypes \
- -Werror=implicit-function-declaration \
- "-Werror=format=2 -Werror=format-security -Werror=format-nonliteral" \
- -Werror=pointer-arith -Werror=init-self \
- -Werror=missing-declarations \
- -Werror=return-type \
- -Werror=switch \
- -Werror=overflow \
- -Werror=int-conversion \
- -Werror=parentheses \
- -Werror=undef \
- -Werror=incompatible-pointer-types \
- -Werror=misleading-indentation \
- -Werror=missing-include-dirs \
- -Wstrict-aliasing=2 \
- -Werror=unused-result \
-])])
-AC_SUBST(WARN_CFLAGS)
-
AC_ARG_ENABLE(sanitizers,
AS_HELP_STRING([--enable-sanitizers],
[Enable ASAN and UBSAN (default: no)]),,