[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strict aliasing in gcc33
From: |
Wolfgang Sourdeau |
Subject: |
Re: strict aliasing in gcc33 |
Date: |
Thu, 29 Apr 2004 15:11:29 -0400 |
User-agent: |
Mutt/1.3.28i |
>
> bash-2.05b$ gcc33 -c -Wall -O2 stest.m
> stest.m: In function `main':
> stest.m:29: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
>
> @implementation TestObject : Object
> + load
> {
> puts("load");
> return self;
> }
> [... code]...
I might be wrong but that warning is probbaly due to the fact that you
don't specify the return type for your methods.
Wolfgang