1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0029310: Coding - multiple compiler warnings in Inspectors

1. Added specific header files to disable and restore compiler warnings: Standard_WarningsDisable.hxx, Standard_WarningsRestore.hxx.
   (Currently only MSVC compiler is handled.)
2. Inspector: compiler warnings are disabled for all includes of Qt headers.
3. Inspector: minor code correction to avoid warning due to use of floating point values in integer calculations.
This commit is contained in:
nds
2018-03-04 19:10:56 +03:00
committed by bugmaster
parent 50c4757387
commit 130eb11405
159 changed files with 396 additions and 123 deletions

View File

@@ -19,10 +19,12 @@
#include <TCollection_AsciiString.hxx>
#include <inspector/TInspector_Window.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDir>
#include <QMainWindow>
#include <QWidget>
#include <Standard_WarningsRestore.hxx>
// =======================================================================
// function : Constructor

View File

@@ -19,6 +19,7 @@
#include <inspector/TInspectorAPI_Communicator.hxx>
#include <inspector/TInspector_PluginParameters.hxx>
#include <Standard_WarningsDisable.hxx>
#include <QApplication>
#include <QDockWidget>
#include <QLabel>
@@ -26,6 +27,7 @@
#include <QPushButton>
#include <QStackedWidget>
#include <QVBoxLayout>
#include <Standard_WarningsRestore.hxx>
const int TINSPECTOR_DEFAULT_WIDTH = 650;
const int TINSPECTOR_DEFAULT_HEIGHT = 500;//350;

View File

@@ -22,12 +22,11 @@
#include <TCollection_AsciiString.hxx>
#include <inspector/TInspectorAPI_PluginParameters.hxx>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // conditional expression is constant
#endif
#include <Standard_WarningsDisable.hxx>
#include <QMap>
#include <QObject>
#include <QString>
#include <Standard_WarningsRestore.hxx>
class TInspectorAPI_Communicator;