From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61204 invoked by alias); 30 Dec 2016 23:14:09 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 60924 invoked by uid 48); 30 Dec 2016 23:13:56 -0000 From: "luizluca at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug general/21011] "may be used uninitialized" error with -Werror=maybe-uninitialized Date: Fri, 30 Dec 2016 23:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luizluca at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q4/txt/msg00026.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21011 --- Comment #1 from Luiz Angelo Daros de Luca -= -- 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=3Dmaybe-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 =3D ""; } } else --=20 You are receiving this mail because: You are on the CC list for the bug.