Skip to content

Adding default constructor to sub struct to discard POD zeroing warni…#56

Closed
devnexen wants to merge 1 commit into
google:masterfrom
devnexen:huge_page_filter_ut_upd
Closed

Adding default constructor to sub struct to discard POD zeroing warni…#56
devnexen wants to merge 1 commit into
google:masterfrom
devnexen:huge_page_filter_ut_upd

Conversation

@devnexen

Copy link
Copy Markdown

…ng at build time.

@google-cla google-cla Bot added the cla: yes label Oct 29, 2020
@ckennelly

Copy link
Copy Markdown
Collaborator

Which compiler/warning are you getting?

@devnexen

Copy link
Copy Markdown
Author

Which compiler/warning are you getting?

gcc and warning as clearing an object of non-trivial type ...::CallArgs

@ckennelly

Copy link
Copy Markdown
Collaborator

On GCC 10.2.0, I get the warning, but adding a default constructor doesn't resolve that warning. CallArgs still has a non-trivial constructor, even if it's defaulted.

Which version of GCC are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants