Skip to content
Snippets Groups Projects
Commit f83c3d8e authored by Marco Clemencic's avatar Marco Clemencic
Browse files

hidden "missing override" warning in GenericXD histogram headers for GCC

in those classes the override is needed or not depending on the teplpate
parameter, so the only solution is to hide the warning.
parent 5dab116a
No related branches found
No related tags found
1 merge request!205hidden/fixed "missing override" warnings exposed after !192
......@@ -11,11 +11,14 @@
#include "AIDA/IProfile1D.h"
#include "TFile.h"
#ifdef __clang__
#pragma clang diagnostic push
// Hide warning message:
// warning: 'XYZ' overrides a member function but is not marked 'override'
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
namespace Gaudi {
......@@ -239,6 +242,8 @@ namespace Gaudi {
#ifdef __clang__
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // AIDAROOT_GENERIC1D_H
......@@ -11,12 +11,14 @@
#include "Axis.h"
#include "TFile.h"
#ifdef __clang__
#pragma clang diagnostic push
// Hide warning message:
// warning: 'XYZ' overrides a member function but is not marked 'override'
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
namespace Gaudi {
......@@ -366,6 +368,8 @@ namespace Gaudi {
#ifdef __clang__
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // GAUDIPI_GENERIC2D_H
......@@ -11,11 +11,14 @@
#include <stdexcept>
#include <memory>
#ifdef __clang__
#pragma clang diagnostic push
// Hide warning message:
// warning: 'XYZ' overrides a member function but is not marked 'override'
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
namespace Gaudi {
......@@ -324,6 +327,8 @@ namespace Gaudi {
#ifdef __clang__
#pragma clang diagnostic pop
#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#endif // GAUDIPI_GENERIC3D_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment