News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

[PATCH] Fix some compiler warnings (GCC 4.3)

Started by ansgar, February 02, 2009, 12:22:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ansgar

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:


   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

prissi