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

qglobal.h unnecessarily includes <assert.h>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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