Skip to content

Commit e4c92b4

Browse files
midipixrofl0r
authored andcommitted
msgfmt: remove unused error() function
fixes a warning: msgfmt.c:202:2: warning: format not a string literal and no format arguments [-Wformat-security]
1 parent 117e8eb commit e4c92b4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/msgfmt.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,6 @@ static char** sysdep_transform(const char* text, unsigned textlen, unsigned *len
198198
return out;
199199
}
200200

201-
static void error(const char* msg) {
202-
fprintf(stderr, msg);
203-
exit(1);
204-
}
205-
206201
static inline void writemsg(struct callbackdata *d) {
207202
if(d->msgidbuf1_len != 0) {
208203
if(!d->strlist[d->curr[pe_msgid]].str.off)

0 commit comments

Comments
 (0)