* 4 warnings "variable set but not used" in Tiny and Small option.c
after applying patches 1537 to 1551. Maybe a missing #ifdef ?
* No warning in Normal or higher.

Example for Tiny:

gcc -c -I.       -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce
-Wall -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1        -o
objects/option.o option.c
option.c: In function ‘set_string_option’:
option.c:6139:13: warning: variable ‘oldval_g’ set but not used
[-Wunused-but-set-variable]
     char_u *oldval_g = NULL;
             ^~~~~~~~
option.c:6138:13: warning: variable ‘oldval_l’ set but not used
[-Wunused-but-set-variable]
     char_u *oldval_l = NULL;
             ^~~~~~~~
option.c: In function ‘set_bool_option’:
option.c:8528:10: warning: variable ‘old_global_value’ set but not
used [-Wunused-but-set-variable]
     int  old_global_value = 0;
          ^~~~~~~~~~~~~~~~
option.c: In function ‘set_num_option’:
option.c:9133:10: warning: variable ‘old_global_value’ set but not
used [-Wunused-but-set-variable]
     long old_global_value = 0; // only used when setting a local and
          ^~~~~~~~~~~~~~~~


Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXtGVJ%2BBT867LLKKA4vUrKmU8cN9p9dLNvN_cT8zDoS4Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui