Bug 229540 - [GTK] Compiler output flooded with [-Wunused-but-set-variable warning]
Summary: [GTK] Compiler output flooded with [-Wunused-but-set-variable warning]
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: Other
Hardware: All Linux
: P3 Minor
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2021-08-26 00:46 PDT by Thomas Devoogdt
Modified: 2021-08-26 00:46 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Devoogdt 2021-08-26 00:46:42 PDT
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