From: Florian K. <fl...@ei...> - 2024-11-21 09:07:22
|
On 21.11.24 08:34, Paul Floyd wrote: > https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=3a80792278be69b9270485b07a79a62a5978c4bf > > commit 3a80792278be69b9270485b07a79a62a5978c4bf > Author: Paul Floyd <pj...@wa...> > Date: Thu Nov 21 08:24:35 2024 +0100 > > Helgrind: fix unused result of write warnings > > Thanks to GCC deciding that we can't ignore wur annotated > functions by casting to void we need to do otherwise. It was > either pragmas or adding an annotated unused local. Pragmas > seem to be the least awful. Yeah, this is annoying. That warning is brought to you by -Ox with x > 0 In my experience (many years doing static analysis and looking at other prople's code) I can say that this warning is a weak symptom for detecting anything serious. How about disabling this globally? Florian |