summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qglobal
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-05-17 10:30:41 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-05-27 14:12:07 -0700
commit23184fb6cd01fe906e2578f233088fc8904ce9a6 (patch)
tree9a29929cbc16e783955f93cc489a62af481bc388 /tests/auto/corelib/global/qglobal
parentd02e1eaae04164a647f1db3b714b6c83e296f8ed (diff)
qglobal.h: use the GCC attribute for nothrow in C mode
There's exactly one use in Qt: the qVersion() function. Change-Id: Ieb9a2aa1ea914b1b956bfffd16eff4b3b9e2119a Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qglobal')
-rw-r--r--tests/auto/corelib/global/qglobal/qglobal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/corelib/global/qglobal/qglobal.c b/tests/auto/corelib/global/qglobal/qglobal.c
index 4d4f4475ea..3b898de39f 100644
--- a/tests/auto/corelib/global/qglobal/qglobal.c
+++ b/tests/auto/corelib/global/qglobal/qglobal.c
@@ -51,7 +51,8 @@ int tst_QtVersion()
return QT_VERSION;
}
-const char *tst_qVersion() Q_DECL_NOEXCEPT
+const char *tst_qVersion() Q_DECL_NOEXCEPT;
+const char *tst_qVersion()
{
#if !defined(QT_NAMESPACE)
return qVersion();