Skip to content

Commit

Permalink
Refs #11814 Refactor pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed May 29, 2015
1 parent cf3b62b commit 5b63dd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Expand Up @@ -21,8 +21,8 @@
#include "MantidVatesAPI/vtkMD0DFactory.h"
#include "MantidVatesAPI/FilteringUpdateProgressAction.h"
#include "MantidVatesAPI/IgnoreZerosThresholdRange.h"
#include "MantidKernel/WarningSuppressions.h"

#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include <boost/optional.hpp>

using namespace Mantid::VATES;
Expand Down Expand Up @@ -235,6 +235,7 @@ int vtkMDEWSource::RequestData(vtkInformation *, vtkInformationVector **, vtkInf
return 1;
}

GCC_DIAG_OFF(strict-aliasing)
int vtkMDEWSource::RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *outputVector)
{
if(m_presenter == NULL && !m_wsName.empty())
Expand Down
3 changes: 2 additions & 1 deletion Code/Mantid/Vates/VatesAPI/test/BoxInfoTest.h
Expand Up @@ -5,7 +5,7 @@

#include <cxxtest/TestSuite.h>

#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "MantidKernel/WarningSuppressions.h"
#include "MantidVatesAPI/BoxInfo.h"
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/BoxController.h"
Expand Down Expand Up @@ -48,6 +48,7 @@ class BoxInfoTest : public CxxTest::TestSuite {
AnalysisDataService::Instance().remove(wsName);
}

GCC_DIAG_OFF(strict-aliasing)
void test_initial_recursion_depth_is_1_for_MD_Event_w_split() {
// Arrange
const std::string wsName = "MD_EVENT_WS_WITH_SPLITTING";
Expand Down
Expand Up @@ -4,6 +4,7 @@
#include "MantidVatesAPI/ADSWorkspaceProvider.h"
#include "MantidAPI/IMDEventWorkspace.h"
#include "MantidVatesAPI/BoxInfo.h"
#include "MantidKernel/WarningSuppressions.h"
#if defined(__INTEL_COMPILER)
#pragma warning disable 1170
#endif
Expand Down Expand Up @@ -39,7 +40,6 @@
#include <QPointer>
#include <QSet>

#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include <boost/optional.hpp>
#include <stdexcept>

Expand Down Expand Up @@ -279,6 +279,7 @@ pqPipelineRepresentation *ViewBase::getPvActiveRep()
return qobject_cast<pqPipelineRepresentation *>(drep);
}

GCC_DIAG_OFF(strict-aliasing)
/**
* This function creates a ParaView source from a given plugin name and
* workspace name. This is used in the plugin mode of the simple interface.
Expand Down

0 comments on commit 5b63dd8

Please sign in to comment.