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

WebEngine Build failure with Clang 15: Chromium-Sandbox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.3.0
    • 5.15.6
    • WebEngine
    • None
    • LLVM/Clang 15.0.0
    • Linux/Wayland, Linux/Other display system
    • 1629f9b8f7f05288f17ed73f2dc328581dffce6a d3c8dd3369583f5efaac39c46c22f35545702aff

    Description

      When compiling with a strict C99 standard compiler like Clang 15.0, the initialization error occurred during the compilation of line 101 of the file

      qtwebengine/src/3rdparty/chromium/sandbox/linux/services/credentials.cc
      
      char tls_buf[PTHREAD_STACK_MIN] = {0};
      

      It happens because this kind of in-place initialization is prohibited by the standard. The error is removed by explicit init:

      char tls_buf[PTHREAD_STACK_MIN];
      memset( tls_buf, 0, PTHREAD_STACK_MIN );
      

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            twdragon Andrei Vukolov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes