Re: [hatari-devel] fix a warning for debugui.c

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sonntag, 11. Februar 2018 17:48:43 CET Nicolas Pomarède wrote:
>  it might be difficult to remember why we
> used an intermediate variable.

but Thomas added a comment why this was done ;)

>just disable them when doing the release ?

If you think about using -Wno-write-strings, that would disable also all 
warnings for other places that might be problematic.

I agree that it is sometimes difficult to get constness right, especially when 
using third-party headers where the keyword should be there, but isn't. But i 
think it is better to do it this way, rather than declaring it as const and 
risk a warning, or maybe even an error when compiling with C++.






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/