public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* no warning even with -Wcast-align in windows/hp-ux
@ 2013-03-04 10:23 Mailaripillai, Kannan Jeganathan
  0 siblings, 0 replies; 3+ messages in thread
From: Mailaripillai, Kannan Jeganathan @ 2013-03-04 10:23 UTC (permalink / raw)
  To: gcc-help

Hi,

char char1;
char char2;
int *ip;

void foo(void) {
  ip = &char1;  // line 6
  *ip = 65;
  ip = &char2; // line 8
  *ip = 66;
  return;
}

No alignment warning at line 6, 8. 
Tried in windows (GCC 4.5.3), hp-ux (GCC 4.7.1).

Regards,
Kannan

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <51350B9A.20602@brenda-arkle.me.uk>]

end of thread, other threads:[~2013-03-05  6:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-04 10:23 no warning even with -Wcast-align in windows/hp-ux Mailaripillai, Kannan Jeganathan
     [not found] <51350B9A.20602@brenda-arkle.me.uk>
2013-03-05  3:53 ` Mailaripillai, Kannan Jeganathan
2013-03-05  6:26 ` Mailaripillai, Kannan Jeganathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).