ICC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-21 10:25:27 +03:00
parent 467ffbd132
commit 69f65cf4e7
4 changed files with 13 additions and 7 deletions

View File

@ -576,7 +576,7 @@ CLANG_DEBUG_CXXFLAGS += \
ICC_DEBUG_CXXFLAGS += \ ICC_DEBUG_CXXFLAGS += \
$$ISYSTEM \ # Ignore warnings Qt headers. $$ISYSTEM \ # Ignore warnings Qt headers.
-Wcomment \ -Wcomment \
#-Weffc++ \ # Disabled, produce to many "false positive" warning -Weffc++ \
-Wextra-tokens \ -Wextra-tokens \
-Wformat \ -Wformat \
#-Winline \ #-Winline \
@ -597,7 +597,7 @@ ICC_DEBUG_CXXFLAGS += \
-Wunused-variable \ -Wunused-variable \
-pedantic \ -pedantic \
-Wno-pch-messages \ -Wno-pch-messages \
-wd1418,2012,2015 #disable warnings. Syntax example -wd1572,873,2259,2261 -wd1418,2012,2015,2017,2022,2013 #disable warnings. Syntax example -wd1572,873,2259,2261
} else { } else {
# Don't use additional GCC and Clang keys on Windows system. # Don't use additional GCC and Clang keys on Windows system.
# Can't find way mark ignore Qt header on Windows. # Can't find way mark ignore Qt header on Windows.

View File

@ -1368,7 +1368,7 @@ struct DXFLIB_EXPORT DL_LeaderVertexData
* Constructor. * Constructor.
* Parameters: see member variables. * Parameters: see member variables.
*/ */
DL_LeaderVertexData(double px=0.0, double py=0.0, double pz=0.0) explicit DL_LeaderVertexData(double px=0.0, double py=0.0, double pz=0.0)
: x(px), y(py), z(pz) : x(px), y(py), z(pz)
{ {
} }

View File

@ -43,7 +43,8 @@ class VMeasurementData : public QSharedData
public: public:
VMeasurementData(quint32 index, const QString &gui_text, const QString &tagName) VMeasurementData(quint32 index, const QString &gui_text, const QString &tagName)
:data(VContainer(nullptr, nullptr)), index(index), gui_text(gui_text), _tagName(tagName), formulaOk(true) :data(VContainer(nullptr, nullptr)), index(index), formula(), gui_text(gui_text), _tagName(tagName),
formulaOk(true)
{} {}
VMeasurementData(VContainer *data, quint32 index, const QString &formula, bool ok, const QString &gui_text, VMeasurementData(VContainer *data, quint32 index, const QString &formula, bool ok, const QString &gui_text,

View File

@ -42,7 +42,10 @@
class VTranslateVars; class VTranslateVars;
#ifdef Q_CC_GNU #if defined(Q_CC_INTEL)
#pragma warning( push )
#pragma warning( disable: 2021 )
#elif defined(Q_CC_GNU)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++" #pragma GCC diagnostic ignored "-Weffc++"
#endif #endif
@ -84,8 +87,10 @@ public:
const Unit *patternUnit; const Unit *patternUnit;
}; };
#ifdef Q_CC_GNU #if defined(Q_CC_INTEL)
#pragma GCC diagnostic pop #pragma warning( pop )
#elif defined(Q_CC_GNU)
#pragma GCC diagnostic pop
#endif #endif
/** /**