diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2014-01-01 23:19:35 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2014-01-01 23:20:25 +1100 |
commit | 6efd9065e69ee39c45dc4113b3d212bc2757128a (patch) | |
tree | 572f1cd620e331976ce214a3b45dfa8a9d7afc86 | |
parent | a7ecdb4e751051a31ae8b40333d85c578ce8ea8d (diff) | |
download | device-tree-compiler-6efd9065e69ee39c45dc4113b3d212bc2757128a.tar.gz |
Remove unused srcpos_warn() function
This function has no users, and we can replace it more generally later.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | srcpos.c | 17 | ||||
-rw-r--r-- | srcpos.h | 2 |
2 files changed, 0 insertions, 19 deletions
@@ -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; @@ -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); |