Remove sizeof from unused variable silencer (#1974)
Using sizeof causes some compilers to complain: 'operand of sizeof is not a type, variable, or dereferenced pointer' static_cast itself should be enough to silence unused variable warning Co-authored-by: Łukasz Mitka <lukasz.mitka@aptiv.com>
This commit is contained in:
parent
86bf6045c6
commit
771292c328
@ -115,7 +115,7 @@ FMT_END_NAMESPACE
|
||||
# else
|
||||
# define FMT_THROW(x) \
|
||||
do { \
|
||||
static_cast<void>(sizeof(x)); \
|
||||
static_cast<void>(x); \
|
||||
FMT_ASSERT(false, ""); \
|
||||
} while (false)
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user