Yuri P. Fedorchenko wrote:
> I want to tell that not all warning are needed to suppress.
> I think that for examle commit "[Library] r8275 - branches/branch-1.3/FL" 
> seams
> strange for me
> 
> one of changes.
> -  virtual const char *item_text(void *item) const { return 0L; }
> +  virtual const char *item_text(void *item) const { (void)item; return 0L; }
> 
> i don't understand reasons for this patch

        Note the log for that patch indicates the STR it was based on:

Log: Fix STR #2518: remove gcc 4.4 compilation warnings with -Wall
             -----

        So if you take a look at STR #2518, you can see the history,
        and perhaps weigh in on a better solution:
        http://fltk.org/str.php?U2518

        If it had been me, I might have written "item=item;"
        instead of (void)item as a way to fool the compiler.. :/
        
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to