aboutgitcodebugslistschat
path: root/contrib/qemu/git:
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-04-30 16:48:34 +0200
committerStefano Brivio <sbrivio@redhat.com>2025-04-30 16:58:58 +0200
commitea0a1240df671de221f469327899564ed74b5edd (patch)
tree989a5e090202ad651d2e5e9e361308b2054e5db8 /contrib/qemu/git:
parentaa1cc8922867b8f7c17742f8da3b9fcc6291bbeb (diff)
downloadpasst-ea0a1240df671de221f469327899564ed74b5edd.tar
passt-ea0a1240df671de221f469327899564ed74b5edd.tar.gz
passt-ea0a1240df671de221f469327899564ed74b5edd.tar.bz2
passt-ea0a1240df671de221f469327899564ed74b5edd.tar.lz
passt-ea0a1240df671de221f469327899564ed74b5edd.tar.xz
passt-ea0a1240df671de221f469327899564ed74b5edd.tar.zst
passt-ea0a1240df671de221f469327899564ed74b5edd.zip
passt-repair: Hide bogus gcc warning from -Og
When building with gcc 13 and -Og, we get: passt-repair.c: In function ‘main’: passt-repair.c:161:23: warning: ‘ev’ may be used uninitialized [-Wmaybe-uninitialized] 161 | if (ev->len > NAME_MAX + 1 || ev->name[ev->len - 1] != '\0') { | ~~^~~~~ but that can't actually happen, because we only exit the preceding while loop if 'found' is true, and that only happens, in turn, as we assign 'ev'. Get rid of the warning by (redundantly) initialising ev to NULL. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu/git:')
0 files changed, 0 insertions, 0 deletions