[Crosstoolchain-logs] [device-tree-compiler] 107/198: Remove unused srcpos_warn() function

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit 6efd9065e69ee39c45dc4113b3d212bc2757128a
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Wed Jan 1 23:19:35 2014 +1100

    Remove unused srcpos_warn() function
    
    This function has no users, and we can replace it more generally later.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 srcpos.c | 17 -----------------
 srcpos.h |  2 --
 2 files changed, 19 deletions(-)

diff --git a/srcpos.c b/srcpos.c
index 294568b..06ef06d 100644
--- a/srcpos.c
+++ b/srcpos.c
@@ -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;
diff --git a/srcpos.h b/srcpos.h
index 57dfa0f..7f0eaea 100644
--- a/srcpos.h
+++ b/srcpos.h
@@ -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);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list