Skip to content

Commit 33a4910

Browse files
committed
lib/fetch: use LIBFETCH_PRINTFLIKE and remove pragma
1 parent 3800c89 commit 33a4910

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/fetch/common.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
#include "fetch.h"
7171
#include "common.h"
7272

73-
#ifdef __clang__
74-
#pragma clang diagnostic ignored "-Wformat-nonliteral"
75-
#endif
76-
7773
/*** Local data **************************************************************/
7874

7975
/*
@@ -180,7 +176,7 @@ fetch_syserr(void)
180176
/*
181177
* Emit status message
182178
*/
183-
void
179+
void LIBFETCH_PRINTFLIKE(1, 2)
184180
fetch_info(const char *fmt, ...)
185181
{
186182
va_list ap;

lib/fetch/ftp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@
7979
#include "common.h"
8080
#include "ftperr.h"
8181

82-
#ifdef __clang__
83-
#pragma clang diagnostic ignored "-Wformat-nonliteral"
84-
#endif
85-
8682
static int ftp_cmd(conn_t *, const char *, ...) LIBFETCH_PRINTFLIKE(2, 3);
8783
#define FTP_ANONYMOUS_USER "anonymous"
8884

0 commit comments

Comments
 (0)