Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block-qdict: -Werror=maybe-uninitialized build failure #6

Open
RevySR opened this issue Sep 15, 2023 · 0 comments
Open

block-qdict: -Werror=maybe-uninitialized build failure #6

RevySR opened this issue Sep 15, 2023 · 0 comments

Comments

@RevySR
Copy link

RevySR commented Sep 15, 2023

FAILED: libqemuutil.a.p/qobject_block-qdict.c.o
cc -Ilibqemuutil.a.p -I. -I.. -Itrace -Iqapi -Iui/shader -I/usr/include/glib-2.0 -I/usr/li
b/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto -pipe -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -isystem /home/deepin/thead/qemu/linux-headers -isystem linux-heade
rs -iquote . -iquote /home/deepin/thead/qemu -iquote /home/deepin/thead/qemu/include -iquote /home/deepin/thead/qemu/disas/libvixl -iquote /home/deepin/thead/qemu/tcg/i386 -pthread
 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-
prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -We
mpty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2
-Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -M
D -MQ libqemuutil.a.p/qobject_block-qdict.c.o -MF libqemuutil.a.p/qobject_block-qdict.c.o.
d -o libqemuutil.a.p/qobject_block-qdict.c.o -c ../qobject/block-qdict.c
In file included from /home/deepin/thead/qemu/include/qapi/qmp/qdict.h:16,
                 from /home/deepin/thead/qemu/include/block/qdict.h:13,
                 from ../qobject/block-qdict.c:11:
/home/deepin/thead/qemu/include/qapi/qmp/qobject.h: In function 'qdict_array_split':
/home/deepin/thead/qemu/include/qapi/qmp/qobject.h:49:17: error: 'subqdict' may be used un
initialized [-Werror=maybe-uninitialized]
   49 |     typeof(obj) _obj = (obj);                                   \
      |                 ^~~~
../qobject/block-qdict.c:227:16: note: 'subqdict' declared here
  227 |         QDict *subqdict;
      |                ^~~~~~~~
cc1: all warnings being treated as errors

qemu@79854b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant