RE: [PATCH 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: Monday, 11 April 2022 17.16 > > 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

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

2022-04-11 Thread Mattias Rönnblom
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. Changes since RFC: * Include usage recommendatio