HomePhabricator

[clang] Change the condition of unnecessary packed warning

Description

[clang] Change the condition of unnecessary packed warning

Summary:
Change the condition of this unnecessary packed warning. The packed is unnecessary when

  1. the alignment of the struct/class won't alter.
  2. the size is unchanged.
  3. the offset of each field is the same.

Remove all field-level warning.

Reviewers: chh, akyrtzi, rtrieu

Reviewed By: chh

Subscribers: rsmith, srhines, cfe-commits, xazax.hun

Differential Revision: https://reviews.llvm.org/D34114

Details

Committed
yawanngAug 1 2017, 2:41 PM
Reviewer
chh
Differential Revision
D34114: [clang] Change the condition of unnecessary packed warning
Parents
rL309749: [sanitizer_common] Disable filesystem-related code for Fuchsia
Branches
Unknown
Tags
Unknown