Remove sizeof from unused variable silencer

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
This commit is contained in:
Łukasz Mitka 2020-11-03 12:25:53 +01:00
parent 86bf6045c6
commit 45313f9aa0

View File

@ -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