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

GCC 13 produces -Wformat-overflow= warning for qdbusmarshaller.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 6.x
    • D-Bus
    • None
    • Ubuntu 22.04 headless; GCC13 20220627 (experimental); qtbase commit d76bf64531
    • Linux/Other display system
    • 394b4c9e4994a9bdde89bd09eb0f663da44e0048

    Description

      Configured with:

      ../qt5/configure -release -shared -developer-build -c++std c++2b -submodules qtbase -nomake tests -- -DWARNINGS_ARE_ERRORS=OFF
      

      The warning:

      [593/1569] Building CXX object qtbase/src/dbus/CMakeFiles/DBus.dir/qdbusargument.cpp.o
      In file included from /home/johannes/repos/qt5/qtbase/src/dbus/qdbusargument.cpp:1097:
      /home/johannes/repos/qt5/qtbase/src/dbus/qdbusmarshaller.cpp: In member function ‘QDBusMarshaller* QDBusMarshaller::beginMap(QMetaType, QMetaType)’:
      /home/johannes/repos/qt5/qtbase/src/dbus/qdbusmarshaller.cpp:240:42: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
        240 |         qWarning("QDBusMarshaller: type '%s' (%d) cannot be used as the key type in a D-BUS map.",
            |                                          ^~
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jkauffmann Johannes Kauffmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes