Compiler warning in Tiny build (not in Huge) for regexp.c

18 views
Skip to first unread message

Tony Mechelynck

unread,
Jun 14, 2013, 4:05:26 PM6/14/13
to Bram Moolenaar, Vim Developers
After downloading 7.3.1190 to 7.3.1193, the following warning appears in
Tiny build but not in Huge:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2
-fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
-o objects/regexp.o regexp.c
regexp.c: In function ‘regmatch’:
regexp.c:4982:8: warning: ‘len’ may be used uninitialized in this
function [-Wuninitialized]


Best regards,
Tony.
--
CART DRIVER: Bring out your dead!
There are legs stick out of windows and doors. Two MEN are fighting
in the
mud - covered from head to foot in it. Another MAN is on his hands in
knees shovelling mud into his mouth. We just catch sight of a MAN
falling
into a well.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

Bram Moolenaar

unread,
Jun 14, 2013, 4:37:40 PM6/14/13
to Tony Mechelynck, Vim Developers

Tony Mechelynck wrote:

> After downloading 7.3.1190 to 7.3.1193, the following warning appears in
> Tiny build but not in Huge:
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2
> -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
> -o objects/regexp.o regexp.c
> regexp.c: In function ‘regmatch’:
> regexp.c:4982:8: warning: ‘len’ may be used uninitialized in this
> function [-Wuninitialized]

Thanks. That's actually a bug.

--
hundred-and-one symptoms of being an internet addict:
207. You're given one phone call in prison and you ask them for a laptop.

/// 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 ///
Reply all
Reply to author
Forward
0 new messages