This is probably for Thibaut.
With Qt 6.10, I get two compiler warnings about uses of QThreadStorage:
488 | static QThreadStorage<int> tID;
| ^~~
/usr/include/qt6/QtCore/qthreadstorage.h:112:70: warning: ‘static
constexpr void QThreadStorageTraits<true>::warnAboutTrivial()’ is
deprecated: QThreadStorage used with a trivial non-pointer type;
consider using thread_local [-Wdeprecated-declarations]
112 | inline QThreadStorage() : d(deleteData) {
Trait::warnAboutTrivial(); }
|
~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qthreadstorage.h:27:27: note: declared here
27 | static constexpr void warnAboutTrivial() noexcept {}
As you can see, they suggest to use std::thread_local instead. This
concerns InsetIndex.cpp:488 and xml.cpp:629
--
Jürgen
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel