[clang][diagnostics] Adding -Wpacked-non-pod to -Wall
- Users will be informed when non-POD is not packed using -Wall. This is also consistent with GCC.
- Fixes PR#60832.
Differential D151162
Add -Wpacked-non-pod to -Wall SlaterLatiao on May 22 2023, 3:12 PM. Authored by
Details [clang][diagnostics] Adding -Wpacked-non-pod to -Wall
Diff Detail
Unit Tests Event TimelineComment Actions Yeah, looks consistent with GCC ( https://godbolt.org/z/EGc3Ec9YT ), as you say - so I'm OK with it. But wouldn't mind a second opinion.
Comment Actions Please be sure to add a release note for the change, and it'd probably be good to have a test case that shows this triggers under -Wall (the modified test case explicitly names the diagnostic).
Comment Actions Thank you, Aaron. I'll add the test case. Should this change go under Improvements to Clang’s diagnostics in the release note? Comment Actions
Comment Actions LGTM! Do you need someone to commit on your behalf? If so, what name and email address would you like us to use for patch attribution? Comment Actions Unfortunately, I had to revert this in 53333c8d44d690f6e8fd6f31803aecb17329cdb5 due to a bot breaking: https://lab.llvm.org/buildbot/#/builders/245/builds/8876 Comment Actions I shouldn't remove -triple=x86_64-none-none in the test case. The "padding struct 'S1' with 1 byte" warning can be different in different architectures. I'll add it back. Comment Actions Adding back the -triple flag
|