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

QT_DISABLE_DEPRECATED_BEFORE is not propagated to unit-tests

    XMLWordPrintable

Details

    • 8
    • 734e0a2fbe (qt/qtbase/dev) 734e0a2fbe (qt/tqtc-qtbase/dev)
    • Foundation Sprint 64, Foundation Sprint 65

    Description

      Currently QT_DISABLE_DEPRECATED_BEFORE value is hardcoded in qtbase/cmake/QtFlagHandlingHelpers.cmake.

      However when I manually change the value to something more recent in

      function(qt_internal_library_deprecation_level result)

      I notice that the unit-tests do not get the new value.

      If something is guarded by

      #if QT_DEPRECATED_SINCE(6, 0)
      

      macro, it is still compiled, thus generating compiler errors.

      Attachments

        Issue Links

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

          Activity

            People

              ivan.solovev Ivan Solovev
              ivan.solovev Ivan Solovev
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes