Skip to content

fixed and enabled -Wold-style-cast#235

Merged
danmar merged 1 commit intocppcheck-opensource:masterfrom
firewave:old-style-cast
Feb 16, 2022
Merged

fixed and enabled -Wold-style-cast#235
danmar merged 1 commit intocppcheck-opensource:masterfrom
firewave:old-style-cast

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread CMakeLists.txt
# these are not really fixable
add_compile_options(-Wno-exit-time-destructors -Wno-global-constructors)
# TODO: fix these?
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-conversion -Wno-old-style-cast)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to get conversion warnings. I am not sure what the Wpadded is about.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address that in another PR.

The one about padding is related the the order of member in a data types causing additional padding and thus increased memory usage. In general it's also something we might not be interested in.

@danmar danmar merged commit 9d78bbb into cppcheck-opensource:master Feb 16, 2022
@firewave firewave deleted the old-style-cast branch February 16, 2022 09:56
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.

2 participants