Unused variable preference

Jeff Mitchell kde-dev at emailgoeshere.com
Wed Sep 20 15:33:28 UTC 2006


Do we have a preference for whether to comment out an unused variable  
in the code:

void
SomeClass::SomeFunction( void used, void /*notused*/ )
{
}

or whether to use Q_UNUSED():

void
SomeClass::SomeFunction( void used, void notused )
{
     Q_UNUSED( notused );
}

--Jeff



More information about the Amarok mailing list