mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
ld/emultempl/msp430.em: Remove unused variable
ld/ChangeLog: * emultempl/msp430.em: Remove unused variable "buf".
This commit is contained in:
parent
48b076bbca
commit
82b946165d
@ -1,3 +1,7 @@
|
||||
2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
|
||||
|
||||
* emultempl/msp430.em: Remove unused variable "buf".
|
||||
|
||||
2020-08-27 Nick Alcock <nick.alcock@oracle.com>
|
||||
|
||||
* ldlang.c (dump_ctf_errs): Unquote CTF error messages.
|
||||
|
@ -261,7 +261,6 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
|
||||
char * lower_name;
|
||||
char * upper_name;
|
||||
char * name;
|
||||
char * buf = NULL;
|
||||
lang_output_section_statement_type * lower;
|
||||
lang_output_section_statement_type * upper;
|
||||
|
||||
@ -294,7 +293,7 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
|
||||
only use the part of the name before the second dot. */
|
||||
if (strchr (secname + 1, '.') != NULL)
|
||||
{
|
||||
buf = name = xstrdup (secname);
|
||||
name = xstrdup (secname);
|
||||
|
||||
* strchr (name + 1, '.') = 0;
|
||||
}
|
||||
@ -330,7 +329,6 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
|
||||
end:
|
||||
free (upper_name);
|
||||
free (lower_name);
|
||||
free (buf);
|
||||
return lower;
|
||||
}
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user