no warning even with -Wcast-align in windows/hp-ux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux