mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
temporary variable node used for NULL argument.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2012-02-18 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* ldmisc.c (vfinfo <%S>): Use same type and avoid cast for
|
||||
temporary variable node used for NULL argument.
|
||||
|
||||
2012-02-18 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/13343
|
||||
|
||||
@@ -241,12 +241,12 @@ vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning)
|
||||
case 'S':
|
||||
/* Print script file and linenumber. */
|
||||
{
|
||||
node_type node;
|
||||
etree_type node;
|
||||
etree_type *tp = va_arg (arg, etree_type *);
|
||||
|
||||
if (tp == NULL)
|
||||
{
|
||||
tp = (etree_type *) &node;
|
||||
tp = &node;
|
||||
tp->type.filename = ldlex_filename ();
|
||||
tp->type.lineno = lineno;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user