The International Simutrans Forum


Author Topic: [PATCH] Fix some compiler warnings (GCC 4.3)  (Read 2075 times)

0 Members and 1 Guest are viewing this topic.

Offline ansgar

  • *
  • Posts: 80
[PATCH] Fix some compiler warnings (GCC 4.3)
« on: February 02, 2009, 12:22:09 AM »

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/ In member function ‘virtual bool climate_gui_t::action_triggered(gui_action_creator_t*, value_t)’:
   gui/ 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.


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10905
  • Languages: De,EN,JP
Re: [PATCH] Fix some compiler warnings (GCC 4.3)
« Reply #1 on: February 02, 2009, 09:55:09 AM »