diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-26 11:23:47 +0300 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-29 03:28:04 +0300 | 
| commit | faaa94313774de7428f63e3cc1d23ec2c7c27656 (patch) | |
| tree | 157c6fb17f7f7d6430d2f60e0f15da9aca254d97 /lib | |
| parent | d8c3daca19add1c3cedea05e9a30fb33f2b4e9ad (diff) | |
tests: fix build warning
FMT_NSTD_BEGIN should be before the first use of "expr".
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/printfrr.h | 2 | 
1 files changed, 1 insertions, 1 deletions
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;                                                            \  | 
