Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-11 Thread Tyler Retzlaff
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

Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-11 Thread Mattias Rönnblom
On 2022-04-11 09:17, Morten Brørup wrote: >> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] >> Sent: Sunday, 10 April 2022 15.52 >> >> This patch adds a wrapper macro __rte_warn_unused_result for the >> warn_unused_result function attribute. >> >> Marking a function __rte_warn_unused

Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-11 Thread Mattias Rönnblom
On 2022-04-11 11:16, 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 >>

Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-11 Thread Bruce Richardson
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

RE: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-11 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:mattias.ronnb...@ericsson.com] > Sent: Sunday, 10 April 2022 15.52 > > 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

Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-10 Thread Mattias Rönnblom
On 2022-04-10 20:02, Stephen Hemminger wrote: > On Sun, 10 Apr 2022 15:51:38 +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 >>

Re: [RFC 1/3] eal: add macro to warn for unused function return values

2022-04-10 Thread Stephen Hemminger
On Sun, 10 Apr 2022 15:51:38 +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 funct