summaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2013-10-10 22:50:40 +0000
committerRoland McGrath <roland@gnu.org>2013-10-10 22:50:40 +0000
commit55b015c26be661b7db78a6cc5e8c5098096fc61c (patch)
treeaa0acb64cf7a2c3d4ac1a5b3952c44cdabb3409a /ld/ldmisc.c
parent8f882e03884d211f6aa2aa95c55e81a57ccfb611 (diff)
downloadbinutils-redhat-55b015c26be661b7db78a6cc5e8c5098096fc61c.tar.gz
ld/
* ldmisc.c (vfinfo): Use Boolean ? "" : ":" in place of ":" + Boolean. It silences some compilers' warnings and is much less bizarre to read.
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index 2569bcc671..1b69ab1da4 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -1,6 +1,6 @@
/* ldmisc.c
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012
+ 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012, 2013
Free Software Foundation, Inc.
Written by Steve Chamberlain of Cygnus Support.
@@ -361,7 +361,7 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning)
if (functionname != NULL && fmt[-1] == 'G')
lfinfo (fp, "%T", functionname);
else if (filename != NULL && linenumber != 0)
- fprintf (fp, "%u%s", linenumber, ":" + done);
+ fprintf (fp, "%u%s", linenumber, done ? "" : ":");
else
done = FALSE;
}