[PATCH 20/22] transport-helper.c: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf'
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Feb 11, 2016, 12:38 UTC
- Message-ID
- <1455194339-859-21-git-send-email-gitter.spiros@gmail.com>
- In-Reply-To
- <1455194339-859-1-git-send-email-gitter.spiros@gmail.com>
Use the new FORMATPRINTF macro (in git-compat-util.h) to declare the gcc function attribute 'format printf'
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> --- transport-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/transport-helper.c b/transport-helper.c index a6bff8b..94c7aab 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -1069,7 +1069,7 @@ int transport_helper_init(struct transport *transport, const char *name) #define PBUFFERSIZE 8192 /* Print bidirectional transfer loop debug message. */ -__attribute__((format (printf, 1, 2))) +FORMATPRINTF(1,2) static void transfer_debug(const char *fmt, ...) { va_list args;
-- 2.5.0