Bug 271005
| Summary: | [WPE][GTK] Fix clang warning about use of variable length arrays in C++ | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Michael Catanzaro
[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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Catanzaro
Pull request: https://github.com/WebKit/WebKit/pull/25911
EWS
Committed 276168@main (d02f043164f2): <https://commits.webkit.org/276168@main>
Reviewed commits have been landed. Closing PR #25911 and removing active labels.