Tony wrote:

> * 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
>           ^~~~~~~~~~~~~~~~

Thanks for reporting, I'll fix it.

-- 
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 -- [email protected] -- 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    ///

-- 
-- 
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/201906161439.x5GEdXvx010865%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui