Skip to content
Commits on Source (1)
  • John Chapman's avatar
    CLHEP: Fix some gcc8 warnings. · ffc23f46
    John Chapman authored
    With gcc8, we get warnings about hidden virtual functions from the
    conversion operator overrides in the engine classes.
    Add a patch to suppress these with the usual using declarations.
    ffc23f46
......@@ -85,6 +85,7 @@ public:
void showStatus() const;
// Dumps the current engine status on the screen.
using HepRandomEngine::operator double;
operator float(); // flat value, without worrying about filling bits
operator unsigned int(); // 32-bit flat value, quickest of all
......
......@@ -72,6 +72,7 @@ public:
void showStatus() const;
// Dumps the engine status on the screen
using HepRandomEngine::operator double;
operator float(); // flat value, without worrying about filling bits
operator unsigned int(); // 32-bit flat value, quickest of all
......
......@@ -71,6 +71,7 @@ public:
void showStatus() const;
// Dumps the engine status on the screen
using HepRandomEngine::operator double;
operator float(); // flat value, without worrying about filling bits
operator unsigned int(); // 32-bit flat value, quickest of all
......
......@@ -77,6 +77,8 @@ public:
void showStatus() const;
// Dumps the engine status on the screen.
using HepRandomEngine::operator double;
using HepRandomEngine::operator float;
operator unsigned int();
// 32-bit flat, but slower than double or float.
......
......@@ -66,6 +66,7 @@ public:
void showStatus() const;
// Dumps the current engine status on the screen.
using HepRandomEngine::operator double;
operator float(); // returns flat, without worrying about filling bits
operator unsigned int(); // 32-bit flat, quickest of all
......
......@@ -90,6 +90,8 @@ public:
void showStatus() const;
// Dumps the engine status on the screen.
using HepRandomEngine::operator double;
using HepRandomEngine::operator float;
operator unsigned int(); // 32-bit flat value, quickest of all.
virtual std::ostream & put (std::ostream & os) const;
......
......@@ -85,6 +85,8 @@ public:
void showStatus() const;
// Dumps the engine status on the screen.
using HepRandomEngine::operator double;
using HepRandomEngine::operator float;
operator unsigned int();
// 32-bit int flat, faster in this case
......
......@@ -92,6 +92,8 @@ public:
int getLuxury() const { return luxury; }
// Gets the luxury level.
using HepRandomEngine::operator double;
using HepRandomEngine::operator float;
operator unsigned int(); // 32-bit flat, but slower than double or float
virtual std::ostream & put (std::ostream & os) const;
......
......@@ -84,6 +84,7 @@ public:
void showStatus() const;
// Dumps the engine status on the screen
using HepRandomEngine::operator double;
operator float(); // flat value, without worrying about filling bits
operator unsigned int(); // 32-bit flat value, quickest of all
......
......@@ -83,6 +83,7 @@ public:
void showStatus() const;
// Dumps the current engine status on the screen.
using HepRandomEngine::operator double;
operator float(); // flat value, without worrying about filling bits
operator unsigned int(); // 32-bit flat value, quickest of all
......