[PATCH] D20561: Warn when taking address of packed member

Roger Ferrer Ibanez via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 09:42:02 PDT 2016


rogfer01 updated this revision to Diff 59241.
rogfer01 added a comment.

This change adds a fix-it suggesting parentheses to silence the warning.


http://reviews.llvm.org/D20561

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaExpr.cpp
  test/Sema/address-packed.c
  test/SemaCXX/address-packed.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20561.59241.patch
Type: text/x-patch
Size: 9299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160601/ea07e728/attachment-0001.bin>


More information about the cfe-commits mailing list