[LLVMbugs] [Bug 4462] -Wpadded not supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 19 14:17:56 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=4462

Kaelyn Uhrain <rikka at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rikka at google.com
         Resolution|                            |FIXED

--- Comment #1 from Kaelyn Uhrain <rikka at google.com> 2012-06-19 16:17:56 CDT ---
-Wpadded was added to clang in r114544 (along with -Wpacked). From a recent
build:

$ cat tmp.cc 
struct foo {
  char c;
  int i;
} f;

$ ./bin/clang -c -o /dev/null -Wpadded tmp.cc 
tmp.cc:3:7: warning: padding struct 'foo' with 3 bytes to align 'i' [-Wpadded]
  int i;
      ^
1 warning generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list