]> code.delx.au - gnu-emacs/commit
--enable-gcc-warnings now uses -Wjump-misses-init
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Feb 2016 16:22:36 +0000 (08:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Feb 2016 16:23:26 +0000 (08:23 -0800)
commite35f99f2dd35a89b42961fc63c7e2772fb03c792
tree42737bbd0e7f64d9b6840516b202f0aa914db098
parent9583b9e871f89bdc1bf30c24a2090c08ed87e1b5
--enable-gcc-warnings now uses -Wjump-misses-init

When configuring with --enable-gcc-warnings, also enable
-Wjump-misses-init, as it’s confusing to use a goto to skip over
an initialization.  Fix the few places in the code that run afoul
of this warning.
* configure.ac (WERROR_CFLAGS): Add -Wjump-misses-init.
* src/doc.c (Fsubstitute_command_keys):
* src/image.c (svg_load_image):
* src/regex.c (re_match_2_internal):
* src/xdisp.c (redisplay_internal, redisplay_window):
Don’t jump over initialization.
configure.ac
src/doc.c
src/image.c
src/regex.c
src/xdisp.c