From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65373 invoked by alias); 30 Dec 2016 23:20:18 -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 65260 invoked by uid 55); 30 Dec 2016 23:20:05 -0000 From: "pmachata 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:20: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: pmachata 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/msg00027.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D21011 --- Comment #2 from pmachata at gmail dot com --- On Dec 31, 2016 00:14, "luizluca at gmail dot com" < sourceware-bugzilla@sourceware.org> wrote: --- 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 ""; Or abort() instead? The point is that the assert always fails. Which it does, unless you compile with -DNDEBUG. So just force it? Thanks, Petr --=20 You are receiving this mail because: You are on the CC list for the bug.