| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Martin Sustrik <sust...@imatix.com> |
| Subject | warning when compiling apr_atomic_casptr with gcc v4.1.2 |
| Date | Wed, 14 Nov 2007 10:14:12 GMT |
Hi all,
following code result in "warning: dereferencing type-punned pointer
will break strict-aliasing rules" under gcc v4.1.2.
int main ()
{
volatile int *i;
apr_atomic_casptr ((volatile void **) &i, NULL, NULL);
return 0;
}
Martin
| |
| Mime |
|
| View raw message | |