Warning about deprecated call
José Matos
jaomatos at gmail.com
Sun Mar 19 11:29:33 UTC 2023
Updating and recompiling I got this warning:
/home/jamatos/lyx/lyx.anon/src/support/mutex.cpp: In constructor ‘lyx::Mutex::Private::Private()’:
/home/jamatos/lyx/lyx.anon/src/support/mutex.cpp:25:21: warning: ‘QMutex::QMutex(RecursionMode)’ is deprecated: Use QRecursiveMutex instead of a recursive QMutex [-Wdeprecated-declarations]
25 | Private() : qmutex_(QMutex::Recursive)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt5/QtCore/QMutex:1,
from /home/jamatos/lyx/lyx.anon/src/support/mutex.cpp:15:
/usr/include/qt5/QtCore/qmutex.h:159:14: note: declared here
159 | explicit QMutex(RecursionMode mode);
| ^~~~~~
Is this useful?
FWIW the only other warnings were about "possibly dangling reference to
a temporary" that were deemed wrong before.
Best regards,
--
José Abílio
More information about the lyx-devel
mailing list