Skip to content
Snippets Groups Projects
Commit 5eee81a2 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Merge pull request #14107 from mantidproject/14089_mdeventfactory_compiler_warning

Disable strict aliasing warning on gcc4.4
parents c595d294 b532fb76
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
#include "MantidKernel/ThreadScheduler.h"
#include "MantidKernel/Timer.h"
#include "MantidKernel/Utils.h"
#include "MantidKernel/WarningSuppressions.h"
#include "MantidDataObjects/MDBoxBase.h"
#include "MantidDataObjects/MDBox.h"
#include "MantidDataObjects/MDEventWorkspace.h"
......@@ -22,6 +23,14 @@
#include "MantidKernel/Memory.h"
#include "MantidKernel/Exception.h"
// Test for gcc 4.4
#if __GNUC__ > 4 || \
(__GNUC__ == 4 && (__GNUC_MINOR__ > 4 || \
(__GNUC_MINOR__ == 4 && \
__GNUC_PATCHLEVEL__ > 0)))
GCC_DIAG_OFF(strict-aliasing)
#endif
using namespace Mantid;
using namespace Mantid::Kernel;
using namespace Mantid::API;
......
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