Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
03ba7cd6
Commit
03ba7cd6
authored
9 years ago
by
Anton Piccardo-Selg
Browse files
Options
Downloads
Patches
Plain Diff
Refs #13872 Change clang control around gcc warning disabler
parent
a24db83c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/DataObjects/src/MDFramesToSpecialCoordinateSystem.cpp
+2
-4
2 additions, 4 deletions
...ork/DataObjects/src/MDFramesToSpecialCoordinateSystem.cpp
Framework/DataObjects/src/MDHistoWorkspace.cpp
+4
-5
4 additions, 5 deletions
Framework/DataObjects/src/MDHistoWorkspace.cpp
with
6 additions
and
9 deletions
Framework/DataObjects/src/MDFramesToSpecialCoordinateSystem.cpp
+
2
−
4
View file @
03ba7cd6
...
@@ -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
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Framework/DataObjects/src/MDHistoWorkspace.cpp
+
4
−
5
View file @
03ba7cd6
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment