Skip to content

Commit

Permalink
Disable all warnings from sip-generated code.
Browse files Browse the repository at this point in the history
As the code is entirely autogenerated we can't do anything about it.
Refs #11400
  • Loading branch information
martyngigg committed Mar 24, 2015
1 parent 9762dfb commit 64941ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Code/Mantid/MantidPlot/src/qti.sip
Expand Up @@ -31,6 +31,12 @@

%Module _qti

%UnitCode
#if defined(__GNUC__) && !(defined(__INTEL_COMPILER))
#pragma GCC system_header
#endif
%End

%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Import mantidqt.sip
Expand Down
7 changes: 3 additions & 4 deletions Code/Mantid/MantidPlot/src/sipqti.cpp.in
@@ -1,9 +1,8 @@
//------------------------------------------------------------------------------
// A wrapper for the auto-generated sipqtipart?.cpp files to disable warnings
// that we can't control
// that we can't control. The warnings are actually suppressed in qti.sip
// with '#pragma GCC system_header' but that pragma only works if it occurs
// in a file that has been included with '#include'
//------------------------------------------------------------------------------
#if defined(__GNUC__) && !(defined(__INTEL_COMPILER))
#pragma GCC system_header
#endif

#include "sip_qtipart0.cpp"

0 comments on commit 64941ad

Please sign in to comment.