[Bug general/21011] "may be used uninitialized" error with -Werror=maybe-uninitialized

pmachata at gmail dot com sourceware-bugzilla@sourceware.org
Fri Dec 30 23:20:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=21011

--- 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 = "";


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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list