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

warning C4996: 'lcVncVerbose': Use Q_STATIC_LOGGING_CATEGORY or add either Q_DECLARE_LOGGING_CATEGORY or QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY in a header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.9.0 FF
    • 6.9.0 FF
    • Qt VNC Server
    • None
    • b317a73e7 (dev)

    Description

      C:\Users\qt\work\qt\tqtc-qtvncserver\src\vncserver\qvncclient.cpp(1504): error C2220: the following warning is treated as an error
      C:\Users\qt\work\qt\tqtc-qtvncserver\src\vncserver\qvncclient.cpp(1504): warning C4996: 'lcVncVerbose': Use Q_STATIC_LOGGING_CATEGORY or add either Q_DECLARE_LOGGING_CATEGORY or QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY in a header
      C:\Users\qt\work\qt\tqtc-qtvncserver\src\vncserver\qvncclient.cpp(1504): note: the template instantiation context (the oldest one first) is
      C:\Users\qt\work\qt\tqtc-qtvncserver\src\vncserver\qvncclient.cpp(1134): note: see reference to class template instantiation 'QRfbHextileEncoder<quint32>' being compiled
      C:\Users\qt\work\qt\tqtc-qtvncserver\src\vncserver\qvncclient.cpp(1394): note: while compiling class template member function 'void QRfbHextileEncoder<quint32>::write(void)'
      

      Build log: https://ci-files01-hki.ci.qt.io/cilogs/qt/tqtc-qtvncserver/291e44f51468b9af8f4fc5a2e178d20b2e1a2a72/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64MSVC2022qtci-windows-11_23H2-x86_64-53-5c1b30DebugAndRelease_Sccache_StandaloneExamples_UseConfigure_WarningsAreErrors/267d0fdf912ce498ce18bb04c5647d37d52014fc/build_1729671867/log.txt.gz

      Details: https://ci-files01-hki.ci.qt.io:8081/coin/integration/qt/tqtc-qtvncserver/tasks/1729671710

      Tested changes (refs/builds/qtci/dev/1729670556):
      https://codereview.qt-project.org/c/qt/tqtc-qtvncserver/+/599146/2 Update dependencies on 'dev' in qt/tqtc-qtvncserver

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes