Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.9, 6.3.0
-
9861fd09cb (qt/qtbase/dev) 9861fd09cb (qt/tqtc-qtbase/dev) 930d105dd7 (qt/qtbase/6.3) 930d105dd7 (qt/tqtc-qtbase/6.3) d8dfc44193 (qt/tqtc-qtbase/5.15) 8a758968eb (qt/tqtc-qtbase/6.2) d8dfc44193 (qt/tqtc-qtbase/tqtc/vxworks-5.15.10)
Description
The running variable has external linkage: https://code.woboq.org/qt5/qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_x11/qeglfsx11integration.cpp.html#running
This causes problems when a user's code also has a global variable called "running" and they statically link to Qt.
Suggestion
Turn it into a file-static variable: `static QAtomicInt running;`