build: exclude deprecated decls from -Werror

Other parts of the system can change (e.g. libc-ares), making things
deprecated, and then our build fails for no reason inside FRR.  This
shouldn't be an error.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2024-05-02 22:07:24 +02:00
parent 54ea38819f
commit e509f30510

View file

@ -453,6 +453,7 @@ fi
AC_C_FLAG([-Wno-unused-parameter]) AC_C_FLAG([-Wno-unused-parameter])
AC_C_FLAG([-Wno-missing-field-initializers]) AC_C_FLAG([-Wno-missing-field-initializers])
AC_C_FLAG([-Wno-microsoft-anon-tag]) AC_C_FLAG([-Wno-microsoft-anon-tag])
AC_C_FLAG([-Wno-error=deprecated-declarations])
AC_C_FLAG([-Wc++-compat], [], [CXX_COMPAT_CFLAGS="-Wc++-compat"]) AC_C_FLAG([-Wc++-compat], [], [CXX_COMPAT_CFLAGS="-Wc++-compat"])
AC_SUBST([CXX_COMPAT_CFLAGS]) AC_SUBST([CXX_COMPAT_CFLAGS])