----- Rodolfo García Peñas (kix) <k...@kix.es> a écrit :
> This patch initialize the variable "state" to avoid compiler warnings.
> ---
>  WPrefs.app/Expert.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Hi,
Actually, this warning was already fixed by
http://repo.or.cz/w/wmaker-crm.git/commit/0d66173e1ff70c2bc0c96fae12f5c438dba9af44

I would personally suggest to not keep the change below because it can 
potentially hide corner cases that the compiler would detect otherwise.


> diff --git a/WPrefs.app/Expert.c b/WPrefs.app/Expert.c
> index e939df0..c441612 100644
> --- a/WPrefs.app/Expert.c
> +++ b/WPrefs.app/Expert.c
> @@ -102,7 +102,7 @@ static void createPanel(Panel * p)
>       WMScrollView *sv;
>       WMFrame *f;
>       WMUserDefaults *udb;
> -     int i, state;
> +     int i, state = 0;
>  
>       panel->box = WMCreateBox(panel->parent);
>       WMSetViewExpandsToParent(WMWidgetView(panel->box), 2, 2, 2, 2);
> -- 
> 1.8.5.2
> 
> 
> -- 
> To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.


--
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to