Skip to content
Snippets Groups Projects
Commit 03ba7cd6 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #13872 Change clang control around gcc warning disabler

parent a24db83c
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,8 @@ MDFramesToSpecialCoordinateSystem::~MDFramesToSpecialCoordinateSystem() {} ...@@ -12,9 +12,8 @@ MDFramesToSpecialCoordinateSystem::~MDFramesToSpecialCoordinateSystem() {}
// Need to turn off the warnings because of boost optional being used. // Need to turn off the warnings because of boost optional being used.
// clang-format off // clang-format off
GCC_DIAG_OFF(cast-qual) GCC_DIAG_OFF(uninitialized)
// clang-format on // clang-format on
GCC_DIAG_OFF(maybe-uninitialized)
/** /**
* Get the Special Coordinate System based on the MDFrame information. * Get the Special Coordinate System based on the MDFrame information.
* @param workspace: the workspace which is being queried * @param workspace: the workspace which is being queried
...@@ -63,9 +62,8 @@ boost::optional<Mantid::Kernel::SpecialCoordinateSystem> ...@@ -63,9 +62,8 @@ boost::optional<Mantid::Kernel::SpecialCoordinateSystem>
return output; return output;
} }
GCC_DIAG_ON(maybe-uninitialized)
// clang-format off // clang-format off
GCC_DIAG_ON(cast-qual) GCC_DIAG_ON(uninitialized)
// clang-format on // clang-format on
/** /**
......
...@@ -1218,9 +1218,8 @@ uint64_t MDHistoWorkspace::sumNContribEvents() const { ...@@ -1218,9 +1218,8 @@ uint64_t MDHistoWorkspace::sumNContribEvents() const {
* Get the Q frame system (if any) to use. * Get the Q frame system (if any) to use.
*/ */
// clang-format off // clang-format off
GCC_DIAG_OFF(cast-qual)
// clang-format on
GCC_DIAG_OFF(strict-aliasing) GCC_DIAG_OFF(strict-aliasing)
// clang-format on
Kernel::SpecialCoordinateSystem Kernel::SpecialCoordinateSystem
MDHistoWorkspace::getSpecialCoordinateSystem() const { MDHistoWorkspace::getSpecialCoordinateSystem() const {
MDFramesToSpecialCoordinateSystem converter; MDFramesToSpecialCoordinateSystem converter;
...@@ -1229,14 +1228,14 @@ MDHistoWorkspace::getSpecialCoordinateSystem() const { ...@@ -1229,14 +1228,14 @@ MDHistoWorkspace::getSpecialCoordinateSystem() const {
if (coordinatesFromMDFrames) { if (coordinatesFromMDFrames) {
coordinates = coordinatesFromMDFrames.get(); coordinates = coordinatesFromMDFrames.get();
} }
return coordinates; return coordinates;
} }
GCC_DIAG_ON(strict-aliasing)
// clang-format off // clang-format off
GCC_DIAG_ON(cast-qual) GCC_DIAG_ON(strict-aliasing)
// clang-format on // clang-format on
/** /**
Set the special coordinate system (if any) to use. Set the special coordinate system (if any) to use.
@param coordinateSystem : Special coordinate system to use. @param coordinateSystem : Special coordinate system to use.
......
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