From dbc772982ec15b0132fa41f64221087bb149e78f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 12 May 2024 14:31:35 -0700 Subject: Quiet -Wredundant-decls from xorg/os.h fallbacks for timingsafe_memcmp The Xorg headers provide their own version of timingsafe_memcmp for platforms that don't have them in libc yet, but rely on configure to set HAVE_* defines to determine if they should be defined in the headers. Signed-off-by: Alan Coopersmith Part-of: --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 1783887..913fd8b 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,11 @@ XORG_ENABLE_UNIT_TESTS # Checks for libraries. AC_CHECK_LIB([m], [rint]) +# Checks for library functions +# We don't use timingsafe_memcmp, but check to quiet -Wredundant-decls warning +# from xorg/os.h which will otherwise redefine it. +AC_CHECK_FUNCS([timingsafe_memcmp]) + # Store the list of server defined optional extensions in REQUIRED_MODULES m4_ifndef([XORG_DRIVER_CHECK_EXT], [m4_fatal([must install xorg-server development files before running autoconf/autogen])]) -- cgit v1.2.3