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

Build Qt under -Wundef

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10
    • Build System: CMake
    • None
    • f04dfa866 (dev), 39ab9e004 (dev), fc4aff124 (dev), 891c1815e (6.9), 4f8e1bf15 (6.9), 23fab1f62 (6.8), 34f60877b (dev), 937ccb466 (dev), 79a2cc13f (dev), 8e57beb17 (dev)

      I'm not sure if there's an overarching epic for "build Qt with more and more warnings enabled by default" where to discuss which warnings we want to get enabled (possibly even discussing regular vs. developer builds).

      This is just about -Wundef, which should be enabled unconditionally when building Qt. A typo when checking for a macro goes otherwise unnoticed and introduces bugs.

      -Wundef is already enabled for headersclean, we should extend it to building the whole of Qt.

        For Gerrit Dashboard: QTBUG-132900
        # Subject Branch Project Status CR V

            qtbuildsystem Qt Build System Team
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: