Bug 229540
| Summary: | [GTK] Compiler output flooded with [-Wunused-but-set-variable warning] | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Thomas Devoogdt <thomas.devoogdt> |
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Minor | Keywords: | Gtk |
| Priority: | P3 | ||
| Version: | Other | ||
| Hardware: | All | ||
| OS: | Linux | ||
Thomas Devoogdt
Hi,
I get a lot of warnings when building webkitgtk (2.30.6) with buildroot (2021.02.4)
This particular warning "warning: variable ‘success’ set but not used" occurs in total 61417 times, which flooding the compiler output logs. Probably due to the UNLIKELY define.
```
build/output/build/webkitgtk-2.30.6/DerivedSources/ForwardingHeaders/wtf/Vector.h:1065:14: warning: variable ‘success’ set but not used [-Wunused-but-set-variable]
```
Is it possible to force the usage of ‘success’ by adding a `(void)success;` line.
Or by suppressing those warnings ...?
kr,
Thomas
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |