|
[Rivet-svn] r2355 - trunk/include/Rivet/Mathblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Mar 23 12:59:59 GMT 2010
Author: buckley Date: Tue Mar 23 12:59:58 2010 New Revision: 2355 Log: Add mising UNUSED definition to MathHeader.hh to fix the testMatVec test in 'make check' Modified: trunk/include/Rivet/Math/MathHeader.hh Modified: trunk/include/Rivet/Math/MathHeader.hh ============================================================================== --- trunk/include/Rivet/Math/MathHeader.hh Tue Mar 23 11:29:24 2010 (r2354) +++ trunk/include/Rivet/Math/MathHeader.hh Tue Mar 23 12:59:58 2010 (r2355) @@ -11,6 +11,18 @@ #include <vector> #include <algorithm> + +// Macro to help with overzealous compiler warnings +#ifdef UNUSED +#elif defined(__GNUC__) +# define UNUSED(x) UNUSED_ ## x __attribute__((unused)) +#elif defined(__LCLINT__) +# define UNUSED(x) /*@unused@*/ x +#else +# define UNUSED(x) x +#endif + + namespace Rivet { using std::string;
More information about the Rivet-svn mailing list |