Skip to content

Commit

Permalink
msgfmt: remove unused error() function
Browse files Browse the repository at this point in the history
fixes a warning:
msgfmt.c:202:2: warning: format not a string literal and no format arguments [-Wformat-security]
  • Loading branch information
midipix authored and rofl0r committed Dec 2, 2018
1 parent 117e8eb commit e4c92b4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/msgfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e4c92b4

Please sign in to comment.