Avoid bogus compile time warning from clang by initialising local data structure using memset.
PR 22485 * readelf.c (process_archive): Use memset to initiaise thin_filedata structure.
This commit is contained in:
parent
7c3c1aa885
commit
eb02c04dc3
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2017-11-23 Pavel I. Kryukov <kryukov@frtk.ru>
|
||||||
|
|
||||||
|
PR 22485
|
||||||
|
* readelf.c (process_archive): Use memset to initiaise
|
||||||
|
thin_filedata structure.
|
||||||
|
|
||||||
2017-11-21 H.J. Lu <hongjiu.lu@intel.com>
|
2017-11-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR binutils/22451
|
PR binutils/22451
|
||||||
|
|
|
@ -18845,7 +18845,9 @@ process_archive (Filedata * filedata, bfd_boolean is_thin_archive)
|
||||||
}
|
}
|
||||||
else if (is_thin_archive)
|
else if (is_thin_archive)
|
||||||
{
|
{
|
||||||
Filedata thin_filedata = { 0 };
|
Filedata thin_filedata;
|
||||||
|
|
||||||
|
memset (&thin_filedata, 0, sizeof (thin_filedata));
|
||||||
|
|
||||||
/* PR 15140: Allow for corrupt thin archives. */
|
/* PR 15140: Allow for corrupt thin archives. */
|
||||||
if (nested_arch.file == NULL)
|
if (nested_arch.file == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue