-Wmaybe-uninitialized in Normal, Big and Huge spellfile.c after applying patches 9.0. 373 to 375

3 views
Skip to first unread message

Tony Mechelynck

unread,
Sep 4, 2022, 8:07:59 AM9/4/22
to Bram Moolenaar, vim_dev
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2
-I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0
-I/usr/include/wayland -I/usr/include/libxkbcommon
-I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
-I/usr/include/at-spi-2.0 -pthread -O2 -fno-strength-reduce -Wall
-Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -o objects/spellfile.o spellfile.c
In function ‘read_region_section’,
inlined from ‘spell_load_file’ at spellfile.c:450:9:
spellfile.c:851:37: warning: ‘c’ may be used uninitialized
[-Wmaybe-uninitialized]
851 | return c == EOF ? SP_TRUNCERROR : 0;
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
spellfile.c: In function ‘spell_load_file’:
spellfile.c:844:17: note: ‘c’ was declared here
844 | int c;
| ^


Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages