aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-08-24 12:58:14 +0930
committerAlan Modra <amodra@gmail.com>2020-08-24 13:29:22 +0930
commitf3da8a96ee360c98a94b47835e8f238e61cf5f11 (patch)
tree3a7efffad7ba13aa9b433ec3737f98e282f8c4d9 /binutils/readelf.c
parent85d14aaeb757550d63254fae5c0415b782e59a29 (diff)
downloadgdb-f3da8a96ee360c98a94b47835e8f238e61cf5f11.zip
gdb-f3da8a96ee360c98a94b47835e8f238e61cf5f11.tar.gz
gdb-f3da8a96ee360c98a94b47835e8f238e61cf5f11.tar.bz2
gcc-4 -Og false positive "may be used uninitialised"
binutils/ * readelf.c (dump_section_as_strings) Avoid false positive "may be used uninitialised". gas/ * config/tc-arm.c (move_or_literal_pool): Avoid false positive "may be used uninitialised". (opcode_lookup): Likewise.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index c47a77c..86be92e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13968,7 +13968,7 @@ dump_section_as_strings (Elf_Internal_Shdr * section, Filedata * filedata)
if (maxlen > 0)
{
- char c;
+ char c = 0;
while (maxlen)
{