Commit 6c2704d2 authored by Lynn Garren's avatar Lynn Garren

better fix for unused variable in Random/Randomize.h

parent 911571e3
==============================
12.06.15 Release CLHEP-2.2.0.8
18.06.15 Release CLHEP-2.2.0.8
==============================
2015-06-18 Lynn Garren <garren@fnal.gov>
* Random/Random/Randomize.h: use __attribute__((unused)) for gcc
2015-06-12 Lynn Garren <garren@fnal.gov>
* Random/Random/RandGauss.h, Random/src/RandGauss.cc:
......
......@@ -59,14 +59,6 @@
#include "CLHEP/Random/RandPoissonT.h"
#include "CLHEP/Random/RandSkewNormal.h"
#include "CLHEP/Random/RandStudentT.h"
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#elif __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
namespace CLHEP {
#define HepUniformRand() HepRandom::getTheEngine()->flat()
......@@ -74,17 +66,14 @@ namespace CLHEP {
// On some compilers the static instance of the HepRandom generator
// needs to be created explicitly in the client code (i.e. here).
#if __GNUC__
static const int HepRandomGenActive __attribute__((unused)) = HepRandom::createInstance();
#else
static const int HepRandomGenActive = HepRandom::createInstance();
#endif
} // namespace CLHEP
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
#pragma GCC diagnostic pop
#elif __clang__
#pragma clang diagnostic pop
#endif
#ifdef ENABLE_BACKWARDS_COMPATIBILITY
// backwards compatibility will be enabled ONLY in CLHEP 1.9
using namespace CLHEP;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment