summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNiclas Rosenvik <youremailsarecrap@gmail.com>2022-11-01 22:31:27 +0100
committerNiclas Rosenvik <youremailsarecrap@gmail.com>2022-11-02 16:40:25 +0100
commit265b1369a397efd47fc13dbcb76a3439cccfe207 (patch)
treeae5ef6429bef4f55fcd7c0d23b8279f64446740c /src
parent8e9309934974c677545966902a79ea7084774e4c (diff)
Fix redefine of QT_NO_VERSION_TAGGING warnings
If a user requests no version tagging by defining QT_NO_VERSION_TAGGING a lot of redefine warnings will be output from the compiler when building corelib. So only define QT_NO_VERSION_TAGGING if it is not already defined. Pick-to: 6.4 Change-Id: I56609b3589184bda7bec52d168d9fd11e2f14a2c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qversiontagging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qversiontagging.h b/src/corelib/global/qversiontagging.h
index 4e0eb68bbd..e64cae1d87 100644
--- a/src/corelib/global/qversiontagging.h
+++ b/src/corelib/global/qversiontagging.h
@@ -73,7 +73,7 @@ struct QVersionTag
};
}
-#if defined(QT_BUILD_CORE_LIB) || defined(QT_BOOTSTRAPPED) || defined(QT_STATIC)
+#if !defined(QT_NO_VERSION_TAGGING) && (defined(QT_BUILD_CORE_LIB) || defined(QT_BOOTSTRAPPED) || defined(QT_STATIC))
// don't make tags in QtCore, bootstrapped systems or if the user asked not to
# define QT_NO_VERSION_TAGGING
#endif