The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ansgar on February 02, 2009, 12:22:09 AM

Title: [PATCH] Fix some compiler warnings (GCC 4.3)
Post by: ansgar on February 02, 2009, 12:22:09 AM
Hi,

The attached patches fix some more compiler warnings (gcc 4.3).  See the patch headers for details.

There are some more warning I would like to fix:

Code: [Select]
   gui/climates.cc: In member function ‘virtual bool climate_gui_t::action_triggered(gui_action_creator_t*, value_t)’:
   gui/climates.cc:242: warning: cast from type ‘const sint16*’ to type ‘sint16*’ casts away constness

The following code modifies this as well, so I guess the `const' qualifier at einstellungen_t::get_climate_borders should be removed?

The remaining warnings are mostly unused parameters and variables, comparison between signed and unsigned integer expressions and some printf arguments.

Ansgar
Title: Re: [PATCH] Fix some compiler warnings (GCC 4.3)
Post by: prissi on February 02, 2009, 09:55:09 AM
Thanks.