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:
parent
86bf6045c6
commit
45313f9aa0
@ -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