From ae11b79d9cbffdeafb49f3d849014e9168d4a043 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 26 Dec 2013 14:55:39 +0000 Subject: [PATCH] Recent versions of GCC (4.4.6 in RHEL6) have gotten stricter in what responsibilities the programmer needs to fulfill. Some headers such as in example, should be included explicitly from now on. --- src/CAM/CAM_Application.cxx | 3 +++ src/HTMLService/HTMLService_HTML.cxx | 3 +++ src/OCCViewer/OCCViewer_ViewPort3d.cxx | 2 ++ src/OCCViewer/OCCViewer_ViewWindow.cxx | 3 +++ src/Qtx/QtxColorScale.cxx | 2 ++ src/Qtx/QtxSplash.cxx | 3 +++ src/Qtx/QtxWorkstack.cxx | 3 +++ src/SUIT/SUIT_DataObject.cxx | 3 +++ src/VTKViewer/VTKViewer_ConvexTool.cxx | 3 --- 9 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 555cdd9f8..213273188 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -39,6 +39,9 @@ #include #endif +//Required by gcc version 4.4.6 +#include + /*! \brief Create new instance of CAM_Application. \return new instance of CAM_Application class diff --git a/src/HTMLService/HTMLService_HTML.cxx b/src/HTMLService/HTMLService_HTML.cxx index 70b4773c6..a25816f07 100755 --- a/src/HTMLService/HTMLService_HTML.cxx +++ b/src/HTMLService/HTMLService_HTML.cxx @@ -12,6 +12,9 @@ #include #include +//Required by gcc version 4.4.6 +#include + IMPLEMENT_STANDARD_HANDLE(HTMLService_HTML, MMgt_TShared) IMPLEMENT_STANDARD_RTTIEXT(HTMLService_HTML, MMgt_TShared) diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 973b46607..26099e810 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -35,6 +35,8 @@ #include #endif +//Required by gcc version 4.4.6 +#include /*! Constructor */ diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 89df6ebe0..a275a3110 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -45,6 +45,9 @@ #include #include +//Required by gcc version 4.4.6 +#include + const char* imageZoomCursor[] = { "32 32 3 1", ". c None", diff --git a/src/Qtx/QtxColorScale.cxx b/src/Qtx/QtxColorScale.cxx index 44589c9c1..e5a31ab51 100755 --- a/src/Qtx/QtxColorScale.cxx +++ b/src/Qtx/QtxColorScale.cxx @@ -29,6 +29,8 @@ #include #include +//Required by gcc version 4.4.6 +#include /*! \class QtxColorScale diff --git a/src/Qtx/QtxSplash.cxx b/src/Qtx/QtxSplash.cxx index 044d8fe88..86ad10aad 100644 --- a/src/Qtx/QtxSplash.cxx +++ b/src/Qtx/QtxSplash.cxx @@ -28,6 +28,9 @@ #include #include +//Required by gcc version 4.4.6 +#include + /*! \class ProgressEvent \internal diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 7c7911cbb..6f7f548de 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -39,6 +39,9 @@ #include #include +//Required by gcc version 4.4.6 +#include + /*! \class QtxWorkstackArea::WidgetEvent \internal diff --git a/src/SUIT/SUIT_DataObject.cxx b/src/SUIT/SUIT_DataObject.cxx index d7b8e6654..41ba52445 100755 --- a/src/SUIT/SUIT_DataObject.cxx +++ b/src/SUIT/SUIT_DataObject.cxx @@ -23,6 +23,9 @@ #include "SUIT_DataObject.h" #include "SUIT_DataObjectKey.h" +//Required by gcc version 4.4.6 +#include + SUIT_DataObject::Signal* SUIT_DataObject::mySignal = 0; /*! diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index 0689ab67a..6ac05bf6d 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -31,10 +31,7 @@ #include #include - -#ifdef WIN32 #include -#endif #include #include -- 2.39.2