[U-Boot] [PATCH 039/126] log: Add log_nop() to avoid unused-variable warnings
Bin Meng
bmeng.cn at gmail.com
Sat Oct 5 14:42:09 UTC 2019
On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg at chromium.org> wrote:
>
> If a log statement includes a variable and logging is disabled, this can
> generate warnings about unused variables. Add a bit more complexity to the
> macros to avoid this for the common case.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> include/log.h | 33 ++++++++++++++++++++++++++-------
> 1 file changed, 26 insertions(+), 7 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list