This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54032] New: The C compiler does not warn about casts to more aligned types
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jul 2012 13:22:33 +0000
- Subject: [Bug c/54032] New: The C compiler does not warn about casts to more aligned types
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54032
Bug #: 54032
Summary: The C compiler does not warn about casts to more
aligned types
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
struct Foo
{
char c;
int i;
} __attribute__((packed));
int *foo(struct Foo *p)
{
return &p->i;
}
does not warn with -W -Wall -Wcast-align.