This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug general/21011] "may be used uninitialized" error with -Werror=maybe-uninitialized
- From: "luizluca at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Fri, 30 Dec 2016 23:13:55 +0000
- Subject: [Bug general/21011] "may be used uninitialized" error with -Werror=maybe-uninitialized
- Auto-submitted: auto-generated
- References: <bug-21011-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21011
--- Comment #1 from Luiz Angelo Daros de Luca <luizluca at gmail dot com> ---
Another case:
i386_disasm.c: In function 'i386_disasm':
/home/luizluca/prog-local/lede/trunk/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/include/fortify/string.h:47:24:
error: 'str' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
(__s < __d && __s + __n > __d))
i386_disasm.c:709:17: note: 'str' was declared here
const char *str;
This is because of missing:
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -822,6 +822,7 @@ i386_disasm (Ebl *ebl __attribute__((unu
/* Fallthrough */
default:
assert (! "INVALID not handled");
+ str = "";
}
}
else
--
You are receiving this mail because:
You are on the CC list for the bug.