Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102456

Add and option to omit the use of global constructors and exit time destructors

    XMLWordPrintable

Details

    • All

    Description

      Some customers would like to avoid any code execution 'before main' and 'after exit' (global constructors / exit-time destructors). The Qt has some global static data that isĀ for example from qrc_qml_CMAKE_.cpp, qmetatype.h and qqmldebug.h that are producing warnings like

      declaration requires an exit-time destructor[-Wexit-time-destructors]

      To avoid the useĀ global constructors / exit-time destructors an build time flag could be introduced to omit the use of them and additionally provide a means to initialize / clean the needed data run time.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            tuomas.vaarala Tuomas Vaarala
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes