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

qglobal.h unnecessarily includes <assert.h>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.15.2
    • Core: Other
    • None
    • All

    Description

      It took me a while to find out what pollutes my whole project with the definition of 'assert' (which I wanted to be undefined and produce a compilation error so I could easily fix all incorrect uses of 'assert'). Turns out it's qglobal.h that does it, and it doesn't even use the 'assert' macro, at least not that I could find.

      I would love to see this include removed and have a cleaner global scope.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            alexium Alex
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes