From: Amitay Isaacs Date: Tue, 2 Aug 2016 08:31:14 +0000 (+1000) Subject: ctdb-common: Fix format-nonliteral warning X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=b201859372189b6e7d57e078a813861a1533aaf4;p=jlayton%2Fsamba.git ctdb-common: Fix format-nonliteral warning BUG: https://bugzilla.samba.org/show_bug.cgi?id=12137 Signed-off-by: Amitay Isaacs Reviewed-by: Uri Simchoni --- diff --git a/ctdb/common/common.h b/ctdb/common/common.h index b89a84cf43..113816db99 100644 --- a/ctdb/common/common.h +++ b/ctdb/common/common.h @@ -76,7 +76,8 @@ int ctdb_fetch_with_header_func(struct ctdb_call_info *call); const char *ctdb_errstr(struct ctdb_context *ctdb); -void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...); +void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...) + PRINTF_ATTRIBUTE(2,3); void ctdb_fatal(struct ctdb_context *ctdb, const char *msg);