From: Alejandro Colomar Date: Fri, 21 Feb 2025 07:41:37 +0000 (+0100) Subject: lib/sssd.h: sssd_flush_cache(): Define as static inline function X-Git-Tag: 4.19.0-rc1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40be785f8a6939b1bfc48faa327ca81a2499efd1;p=thirdparty%2Fshadow.git lib/sssd.h: sssd_flush_cache(): Define as static inline function Being a macro, the unused return value triggers a diagnostic. This probably needs further investigation, but we have the issue linked below for that. Link: Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- diff --git a/lib/sssd.h b/lib/sssd.h index 00ff2a8a3..1f7ff3ccc 100644 --- a/lib/sssd.h +++ b/lib/sssd.h @@ -10,7 +10,11 @@ #ifdef USE_SSSD extern int sssd_flush_cache (int dbflags); #else -#define sssd_flush_cache(service) (0) +static inline int +sssd_flush_cache(int) +{ + return 0; +} #endif #endif