Skip to content

Remove sizeof from unused variable silencer - #1974

Merged
vitaut merged 1 commit into
fmtlib:masterfrom
darklukee:unused_variable_silencer
Nov 3, 2020
Merged

vitaut merged 1 commit into
fmtlib:masterfrom
darklukee:unused_variable_silencer

Conversation

@darklukee

Copy link
Copy Markdown
Contributor

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

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
@vitaut
vitaut merged commit 771292c into fmtlib:master Nov 3, 2020
@vitaut

vitaut commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

Thank you

@darklukee
darklukee deleted the unused_variable_silencer branch November 5, 2020 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants