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

error: use of undeclared identifier 'qsnprintf'; did you mean 'vsnprintf'?

    XMLWordPrintable

Details

    • d597ea558 (dev), 783c8c4a1 (6.8)

    Description

      MT src/common-lib/CMakeFiles/AppManCommonPrivate.dir/colorprint.cpp.o -MF src/common-lib/CMakeFiles/AppManCommonPrivate.dir/colorprint.cpp.o.d -o src/common-lib/CMakeFiles/AppManCommonPrivate.dir/colorprint.cpp.o -c /Users/qt/work/qt/qtapplicationmanager/src/common-lib/colorprint.cpp
      /Users/qt/work/qt/qtapplicationmanager/src/common-lib/colorprint.cpp:65:5: error: use of undeclared identifier 'qsnprintf'; did you mean 'vsnprintf'?
          qsnprintf(tmp, sizeof(tmp), "%d", i);
          ^~~~~~~~~
          vsnprintf
      /Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/stdio.h:340:6: note: 'vsnprintf' declared here
      int      vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0);
               ^
      /Users/qt/work/qt/qtapplicationmanager/src/common-lib/colorprint.cpp:65:39: error: cannot initialize a parameter of type 'va_list' (aka 'char *') with an lvalue of type 'int'
          qsnprintf(tmp, sizeof(tmp), "%d", i);
                                            ^
      /Applications/Xcode15.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/stdio.h:340:97: note: passing argument to parameter here
      int      vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0);
                                                                                                          ^
      2 errors generated.
      

      Build log: https://testresults.qt.io/logs/qt/qtapplicationmanager/ba760a4f25cab9f165a4ac50ae4c099e373143fe/MacOSMacOS_14arm64MacOSMacOS_14arm64Clangqtci-macos-14-arm-106-0b3d2eUseConfigure_WarningsAreErrors/6a5505b7267b6524c18127dab19f9e7465b5e990/build_1723681380/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtapplicationmanager/tasks/1723681291

      Tested changes (refs/builds/qtci/dev/1723677693):
      https://codereview.qt-project.org/c/qt/qtapplicationmanager/+/583185/2 Update dependencies on 'dev' in qt/qtapplicationmanager

      Attachments

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

        Activity

          People

            zogera Zoltán Gera
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes