[RFC 1/3] eal: add macro to warn for unused function return values
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Apr 11 20:24:47 CEST 2022
On Mon, Apr 11, 2022 at 10:16:35AM +0100, Bruce Richardson wrote:
> On Sun, Apr 10, 2022 at 03:51:38PM +0200, Mattias Rönnblom wrote:
> > This patch adds a wrapper macro __rte_warn_unused_result for the
> > warn_unused_result function attribute.
> >
> > Marking a function __rte_warn_unused_result will make the compiler
> > emit a warning in case the caller does not use the function's return
> > value.
> >
> > Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
> > ---
>
> This is good to have, thanks.
>
> Series-acked-by: Bruce Richardson <bruce.richardson at intel.com>
+1
Series-acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
More information about the dev
mailing list