[Webkit-unassigned] [Bug 271005] New: [WPE][GTK] Fix clang warning about use of variable length arrays in C++
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 14 14:14:20 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=271005
Bug ID: 271005
Summary: [WPE][GTK] Fix clang warning about use of variable
length arrays in C++
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at redhat.com
CC: bugs-noreply at webkitgtk.org
[34/83] Building CXX object Tools/TestWebKitAPI/glib/CMakeFile...tWebContext.dir/__/Tests/WebKitGLib/TestWebKitWebContext.cpp.o
/home/mcatanzaro/Projects/WebKit/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:382:34: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
382 | GRefPtr<WebKitWebView> views[numIterations];
| ^~~~~~~~~~~~~
/home/mcatanzaro/Projects/WebKit/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:382:34: note: read of non-const variable 'numIterations' is not allowed in a constant expression
/home/mcatanzaro/Projects/WebKit/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:381:9: note: declared here
381 | int numIterations = 25;
| ^
1 warning generated.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240314/83f45445/attachment.htm>
More information about the webkit-unassigned
mailing list