]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/sssd.h: sssd_flush_cache(): Define as static inline function
authorAlejandro Colomar <alx@kernel.org>
Fri, 21 Feb 2025 07:41:37 +0000 (08:41 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 5 Dec 2025 15:21:50 +0000 (09:21 -0600)
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: <https://github.com/shadow-maint/shadow/issues/1221>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/sssd.h

index 00ff2a8a31932a66a6a9b17488aeae91d2766922..1f7ff3ccc6ad95a1aca3b37e905227e619a0bf56 100644 (file)
 #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