On Sun, Jun 07, 2020 at 02:43:06PM -0700, Jason Thorpe wrote: > > > On Jun 7, 2020, at 1:57 PM, Joerg Sonnenberger <jo...@bec.de> wrote: > > > >> Example? > > > > https://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Function-Attributes.html#index-g_t_0040code_007bdeprecated_007d-attribute_002e-2502 > > I meant an example in our tree. We use __warn_reference() in several places > already. I also don't want to introduce compiler warnings just yet.
Yes, we do use it in a number of places. Most of them are ancient, some of the modern cases like in XHR are exactly what I am talking about in triggering bugs. The compiler warnings are strictly superior. Joerg