/cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.4.30/CxxUtils/CxxUtils/unused.h File Reference

Macro to mark a variable as unused. More...

Go to the source code of this file.

Defines

#define UNUSED(v)   v

Detailed Description

Macro to mark a variable as unused.

Author:
scott snyder <snyder@bnl.gov>
Date:
Mar, 2011 Use like:

int UNUSED(v);

Of course, if a variable is really unused, it's better to simply remove it rather than trying to paper over the warning like this.

But there are some cases where in regression tests one might want to legitimately have an unused variable (particularly with gcc 4.6, where the unused warnings also catch variables assigned to but not read). This is really meant for these cases.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1