Compiler warnings in Normal and Big after applying patches 1648 and 1649

11 views
Skip to first unread message

Tony Mechelynck

unread,
Jul 7, 2019, 3:13:42 PM7/7/19
to Bram Moolenaar, vim_dev
Compiler warnings in Normal and Big after applying patches 1648 and 1649.

No warnings in Huge, Small or Tiny.

I'm attaching my configure settings.

Best regards,
Tony.
hugecfg
bigcfg
smallcfg
tinycfg
normcfg

Bram Moolenaar

unread,
Jul 7, 2019, 5:10:39 PM7/7/19
to vim...@googlegroups.com, Tony Mechelynck

Tony wrote:

> Compiler warnings in Normal and Big after applying patches 1648 and 1649.
>
> No warnings in Huge, Small or Tiny.
>
> I'm attaching my configure settings.

I tried a similar config, didn't see any warnings.

--
Witches prefer brooms: vacuum-cleaners need extension cords!

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Tony Mechelynck

unread,
Jul 7, 2019, 9:08:02 PM7/7/19
to Bram Moolenaar, vim_dev
On Sun, Jul 7, 2019 at 11:10 PM Bram Moolenaar <Br...@moolenaar.net> wrote:
>
>
> Tony wrote:
>
> > Compiler warnings in Normal and Big after applying patches 1648 and 1649.
> >
> > No warnings in Huge, Small or Tiny.
> >
> > I'm attaching my configure settings.
>
> I tried a similar config, didn't see any warnings.
>

I forgot to attach the compiler output (gcc 7.4.1):

gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2 -O2 -fno-strength-reduce -Wall -D_REENTRANT
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/beval.o
beval.c
beval.c: In function ‘get_beval_info’:
beval.c:159:9: warning: ‘col’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
if (find_word_under_cursor(row, col, getword,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FIND_IDENT + FIND_STRING + FIND_EVAL,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
winp, lnump, textp, colp) == OK)
~~~~~~~~~~~~~~~~~~~~~~~~~
beval.c:159:9: warning: ‘row’ may be used uninitialized in this
function [-Wmaybe-uninitialized]


Best regards:
Tony.

Bram Moolenaar

unread,
Jul 8, 2019, 2:09:38 PM7/8/19
to vim...@googlegroups.com, Tony Mechelynck
Thanks. We can simplify that code.

--
ARTHUR: Be quiet!
DENNIS: --but by a two-thirds majority in the case of more--
ARTHUR: Be quiet! I order you to be quiet!
WOMAN: Order, eh -- who does he think he is?
ARTHUR: I am your king!
The Quest for the Holy Grail (Monty Python)
Reply all
Reply to author
Forward
0 new messages