weimingtom / agui

Automatically exported from code.google.com/p/agui
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Adjust functions to avoid the "not used formal parameter" warning #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to do it in agui, just wondering if you have problem with that.

This happens in empty function in top class where parameters are not used, like:

virtual void mouseDownCB(MouseEvent &mouseEvent) {}

would change to

virtual void mouseDownCB(MouseEvent &) {}

in cases where it would hurt readability, like 

virtual void valueChanged(Slider* source, int value) {}

it could be changed to

virtual void valueChanged(Slider* source, int value)
{
  (void)(source);
  (void)(value);
}

Original issue reported on code.google.com by kovarex on 31 Jul 2012 at 11:25

GoogleCodeExporter commented 8 years ago
Sure, go ahead.

Original comment by josh.lar...@gmail.com on 31 Jul 2012 at 12:27

GoogleCodeExporter commented 8 years ago

Original comment by kovarex on 10 Jan 2013 at 12:20