From e4c92b4a48ad613abbd1075fb21f722d4f38b073 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 2 Dec 2018 16:55:40 +0000 Subject: [PATCH] msgfmt: remove unused error() function fixes a warning: msgfmt.c:202:2: warning: format not a string literal and no format arguments [-Wformat-security] --- src/msgfmt.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/msgfmt.c b/src/msgfmt.c index c5d43d7..f9692ce 100644 --- a/src/msgfmt.c +++ b/src/msgfmt.c @@ -198,11 +198,6 @@ static char** sysdep_transform(const char* text, unsigned textlen, unsigned *len return out; } -static void error(const char* msg) { - fprintf(stderr, msg); - exit(1); -} - static inline void writemsg(struct callbackdata *d) { if(d->msgidbuf1_len != 0) { if(!d->strlist[d->curr[pe_msgid]].str.off)