From faaa94313774de7428f63e3cc1d23ec2c7c27656 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 26 Apr 2021 11:23:47 +0300 Subject: [PATCH] tests: fix build warning FMT_NSTD_BEGIN should be before the first use of "expr". Signed-off-by: Igor Ryzhov --- lib/printfrr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/printfrr.h b/lib/printfrr.h index 4338ac3a2f..37f1f9c8cd 100644 --- a/lib/printfrr.h +++ b/lib/printfrr.h @@ -305,8 +305,8 @@ struct va_format { #define FMT_NSTD(expr) \ ({ \ - typeof(expr) _v; \ FMT_NSTD_BEGIN \ + typeof(expr) _v; \ _v = expr; \ FMT_NSTD_END \ _v; \