Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poco 1.6.0 upgrade introduces compiler warnings #11816

Closed
quantumsteve opened this issue Jan 27, 2015 · 1 comment
Closed

Poco 1.6.0 upgrade introduces compiler warnings #11816

quantumsteve opened this issue Jan 27, 2015 · 1 comment
Assignees
Labels
Framework Issues and pull requests related to components in the Framework
Milestone

Comments

@quantumsteve
Copy link
Contributor

Today homebrew upgraded poco to 1.6.0. After upgrading Mantid generates the compiler warnings below. It looks like both Mantid and poco define the macros GCC_DIAG_ON and GCC_DIAG_OFF.

[279/2621] Building CXX object Framework/Geometry/CMakeFiles/Geometry.dir/src/Rendering/OCGeometryRenderer.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Geometry/src/Rendering/OCGeometryRenderer.cpp:6:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Geometry/src/Rendering/OCGeometryRenderer.cpp:6:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[283/2621] Building CXX object Framework/Geometry/CMakeFiles/Geometry.dir/src/Rendering/OCGeometryGenerator.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp:13:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Geometry/src/Rendering/OCGeometryGenerator.cpp:13:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[594/2621] Building CXX object Framework/PythonInterface/mantid/api/CMakeFiles/PythonAPIModule.dir/src/Exports/AlgorithmFactory.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp:4:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/AlgorithmFactory.cpp:4:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[649/2621] Building CXX object Framework/PythonInterface/mantid/api/CMakeFiles/PythonAPIModule.dir/src/Exports/FunctionFactory.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp:3:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/FunctionFactory.cpp:3:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[1263/2621] Building CXX object Framework/LiveData/CMakeFiles/LiveData.dir/src/ISISHistoDataListener.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/LiveData/src/ISISHistoDataListener.cpp:14:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/LiveData/src/ISISHistoDataListener.cpp:14:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[1270/2621] Building CXX object Framework/LiveData/CMakeFiles/LiveData.dir/src/ISISLiveEventDataListener.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/LiveData/src/ISISLiveEventDataListener.cpp:12:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/LiveData/src/ISISLiveEventDataListener.cpp:12:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[1288/2621] Building CXX object Framework/MDEvents/CMakeFiles/MDEvents.dir/src/MDGridBox.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp:8:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp:8:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[1574/2621] Building CXX object Framework/MDEvents/CMakeFiles/MDEvents.dir/src/MDEventFactory.cpp.o
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDEventFactory.cpp:21:
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp:8:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:56:9: warning: 'GCC_DIAG_OFF' macro redefined

define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:85:11: note: previous definition is here
#define GCC_DIAG_OFF(x)
^
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDEventFactory.cpp:21:
In file included from /Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp:8:
/Users/svh/Documents/MantidProject/mantid/Code/Mantid/Framework/Kernel/inc/MantidKernel/WarningSuppressions.h:57:9: warning: 'GCC_DIAG_ON' macro redefined

define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(warning GCC_DIAG_JOINSTR(-W, x))

    ^

/usr/local/include/Poco/Platform_POSIX.h:86:11: note: previous definition is here
#define GCC_DIAG_ON(x)
^
2 warnings generated.
[2621/2621] Linking CXX executable bin/MantidPlot.app/Contents/MacOS/MantidPlot

@quantumsteve
Copy link
Contributor Author

This issue was originally trac ticket 10977

@quantumsteve quantumsteve added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@quantumsteve quantumsteve self-assigned this Jun 3, 2015
@quantumsteve quantumsteve added this to the Release 3.4 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

No branches or pull requests

1 participant