Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
5.15.6, 5.15.7, 5.15.16, 5.15.17
-
None
-
Ubuntu 22.04 LTS/Mint
Clang 15 built from source
Description
When compiled with Clang 15, the build stops at file {{qtwebengine/src/3rdparty/chromium/sandbox/linux/services/credentials.cc }}where the following line 101 exists:
char tls_buf[PTHREAD_STACK_MIN] = {0};
Clang reports in place initialization error because the PTHREAD_STACK_MIN macro is considered a variable:
qtwebengine/src/3rdparty/chromium/sandbox/linux/services/credentials.cc:101:16: error: variable-sized object may not be initialized
The workaround is to replace this line with two followings:
char tls_buf[PTHREAD_STACK_MIN];
memset(tls_buf, 0, PTHREAD_STACK_MIN);