Fix clang 9 format-nonliteral warning
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 27 Aug 2020 01:50:16 +0000 (13:50 +1200)
committerJeremy Allison <jra@samba.org>
Mon, 31 Aug 2020 21:06:29 +0000 (21:06 +0000)
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/idmap_ad.c

index 3bfeeee2d74b0a5268be0f3a91014d457244a913..bd5add9aca29ac399a683857ad8103fd1a8f156d 100644 (file)
@@ -254,10 +254,11 @@ static TLDAPRC get_posix_schema_names(struct tldap_context *ld,
        return TLDAP_SUCCESS;
 }
 
-static void idmap_ad_tldap_debug(void *log_private,
-                                enum tldap_debug_level level,
-                                const char *fmt,
-                                va_list ap)
+static void PRINTF_ATTRIBUTE(3, 0) idmap_ad_tldap_debug(
+       void *log_private,
+       enum tldap_debug_level level,
+       const char *fmt,
+       va_list ap)
 {
        int samba_level = -1;