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:
darklukee 2020-11-03 15:48:19 +01:00 committed by GitHub
parent 86bf6045c6
commit 771292c328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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