Suppress warnings for Qt builds only.

Qt should not dictate which warnings are disabled for client code.
Therefore warnings will only be suppressed when building Qt.

Change-Id: I1c470ba346c8272bae2a38385e425afa6eb50170
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Kurt Pattyn 2014-01-12 18:21:03 +01:00 committed by The Qt Project
parent 852308114f
commit 0893d2d7e5

View File

@ -820,11 +820,13 @@ Q_CORE_EXPORT void qFreeAligned(void *ptr);
/*
Avoid some particularly useless warnings from some stupid compilers.
Avoid some particularly useless warnings from some compilers.
To get ALL C++ compiler warnings, define QT_CC_WARNINGS or comment out
the line "#define QT_NO_WARNINGS".
These warnings can only suppressed when building QT. For end-user applications
they will be enabled.
*/
#if !defined(QT_CC_WARNINGS)
#if !defined(QT_CC_WARNINGS) && defined(QT_BUILDING_QT)
# define QT_NO_WARNINGS
#endif
#if defined(QT_NO_WARNINGS)