Skip to content
Snippets Groups Projects
Commit b532fb76 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Disable strict aliasing warning on gcc4.4

A known issue with gcc 4.4 & boost optional
Refs #14089
parent c595d294
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