Workaround for -fvisibility-inlines-hidden on alpha:
authorSteve Langasek <vorlon@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
committerAdrian Bunk <bunk@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
Bug-Debian: http://bugs.debian.org/368883

            break out the static methods so they're not inlined.
            fix FTBFS on alpha.

Gbp-Pq: Name 40_alpha_ice.diff

src/corelib/global/qlibraryinfo.cpp
src/corelib/tools/qhash.h

index df2c0684954509cb11f591692574564813a335ee..0eacff0c6301c0063589ba6b83f797d78f987695 100644 (file)
@@ -85,12 +85,7 @@ class QLibraryInfoPrivate
 {
 public:
     static QSettings *findConfiguration();
-    static void cleanup()
-    {
-        QLibrarySettings *ls = qt_library_settings();
-        if (ls)
-            ls->settings.reset(0);
-    }
+    static void cleanup();
     static QSettings *configuration()
     {
         QLibrarySettings *ls = qt_library_settings();
@@ -98,6 +93,13 @@ public:
     }
 };
 
+void QLibraryInfoPrivate::cleanup()
+{
+    QLibrarySettings *ls = qt_library_settings();
+    if (ls)
+        ls->settings.reset(0);
+}
+
 QLibrarySettings::QLibrarySettings()
     : settings(QLibraryInfoPrivate::findConfiguration())
 {
index 14b0f467d9b6aa6a81072a4324d767ce40a0e643..b4938f5ab5340d20f74e61bd11edf12f770a262e 100644 (file)
@@ -523,7 +523,7 @@ Q_INLINE_TEMPLATE void QHash<Key, T>::deleteNode2(QHashData::Node *node)
 }
 
 template <class Key, class T>
-Q_INLINE_TEMPLATE void QHash<Key, T>::duplicateNode(QHashData::Node *node, void *newNode)
+void QHash<Key, T>::duplicateNode(QHashData::Node *node, void *newNode)
 {
     Node *concreteNode = concrete(node);
     if (QTypeInfo<T>::isDummy) {