From 42ba861e21567462156bdc7cb292331f4d0b6654 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 2 Jul 2013 08:54:02 +0200 Subject: [PATCH] lib/fetch: ignore -Wformat-nonliteral with clang. --- lib/fetch/common.c | 4 ++++ lib/fetch/ftp.c | 4 ++++ lib/fetch/http.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/lib/fetch/common.c b/lib/fetch/common.c index e3fc4faf..dde36826 100644 --- a/lib/fetch/common.c +++ b/lib/fetch/common.c @@ -69,6 +69,10 @@ #include "fetch.h" #include "common.h" +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wformat-nonliteral" +#endif + /*** Local data **************************************************************/ /* diff --git a/lib/fetch/ftp.c b/lib/fetch/ftp.c index 2fe99131..9426e432 100644 --- a/lib/fetch/ftp.c +++ b/lib/fetch/ftp.c @@ -93,6 +93,10 @@ #include "common.h" #include "ftperr.h" +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wformat-nonliteral" +#endif + #define FTP_ANONYMOUS_USER "anonymous" #define FTP_CONNECTION_ALREADY_OPEN 125 diff --git a/lib/fetch/http.c b/lib/fetch/http.c index 684328ee..4b2b5583 100644 --- a/lib/fetch/http.c +++ b/lib/fetch/http.c @@ -102,6 +102,10 @@ #include "common.h" #include "httperr.h" +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wformat-nonliteral" +#endif + /* Maximum number of redirects to follow */ #define MAX_REDIRECT 5