diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-12 14:31:35 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-05-12 23:03:21 +0000 |
commit | dbc772982ec15b0132fa41f64221087bb149e78f (patch) | |
tree | f95b9c3cbeed603524d50dc6807e397c934015e8 | |
parent | e3f6c5c6420f9e372a63ae7a7a74cb2cea868156 (diff) |
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 <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/17>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
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])]) |