Commit 33a4e2b
committed
libbpf-tools/opensnoop: hint on unused variable
GCC-16 changed the default of the unused-but-set-variable warnings,
which now throws an error when -Wall or -Wextra is enabled.
sps_cnt is only used when USE_BLAZESYM is defined. This patch does a
void cast to hint the compiler to ignore sps_cnt being unused in those
cases.
* https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused1 parent e1446ea commit 33a4e2b
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
| |||
0 commit comments