diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2014-01-12 18:21:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-17 10:22:07 +0100 |
commit | 0893d2d7e5cadcbea5caca8a027ae3e28b6c5410 (patch) | |
tree | 797654cbb7829d89b7124a18021ca30f580004f0 /src/corelib/global | |
parent | 852308114ff901b86cca99268f498fc1d56b622e (diff) |
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>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 8a86dc158e..84f4dc9613 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -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) |