Skip to content

Commit

Permalink
Remove unused srcpos_warn() function
Browse files Browse the repository at this point in the history
This function has no users, and we can replace it more generally later.

Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
dgibson committed Jan 1, 2014
1 parent a7ecdb4 commit 6efd906
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions srcpos.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,23 +312,6 @@ srcpos_error(struct srcpos *pos, char const *fmt, ...)
va_end(va);
}


void
srcpos_warn(struct srcpos *pos, char const *fmt, ...)
{
const char *srcstr;
va_list va;
va_start(va, fmt);

srcstr = srcpos_string(pos);

fprintf(stderr, "Warning: %s ", srcstr);
vfprintf(stderr, fmt, va);
fprintf(stderr, "\n");

va_end(va);
}

void srcpos_set_line(char *f, int l)
{
current_srcfile->name = f;
Expand Down
2 changes: 0 additions & 2 deletions srcpos.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ extern void srcpos_verror(struct srcpos *pos, char const *, va_list va)
__attribute__((format(printf, 2, 0)));
extern void srcpos_error(struct srcpos *pos, char const *, ...)
__attribute__((format(printf, 2, 3)));
extern void srcpos_warn(struct srcpos *pos, char const *, ...)
__attribute__((format(printf, 2, 3)));

extern void srcpos_set_line(char *f, int l);

Expand Down

0 comments on commit 6efd906

Please sign in to comment.