Hi Chris
Thanks a lot for your advice.

On Mon, 10 Nov 2008 08:28:21 -0500,
   "Chris Wright" <[EMAIL PROTECTED]> wrote:

> 2008/11/10 Yasufumi Haga <[EMAIL PROTECTED]>:
> > Hi all
> >
> > When I compiled eina, an error that the compiler didn't know "-Wextra"
> > happend. I'm not sure why this error happened. I guess it's perhaps
> > because the version of my compiler is gcc (GCC) 3.3.6. I suspect that
> > my gcc doesn't recognize the option due to its version, which would be
> > lower than the one necessary to recognize the option.
> 
> That just turns on extra warnings. And that version of GCC is pretty
> out of date; is there any reason you're using that rather than a more
> recent version?

It's simply because the distro which I'm using doesn't provide more
recent version of gcc as a package. However I still don't make up my
mind to change the distro to something else because according to the
roadmap of the distro, its new version would be released next month
or next year. In addition I guess It would be difficult to find out a
distro which is available on the machine with memory as small as 128MB :)

> 
> > So I modified configure.ac in eina directory and replaced the value
> > of EINA_CFLAGS with "${EINA_CFLAGS} -Wall -W" # -Wextra -Werror to
> > finish compiling it normally:
> >
> > if ! test "${VMIC}" = "x" ; then
> >   EINA_CFLAGS="${EINA_CFLAGS} -Wall -W" # -Wextra -Werror
> > fi
> 
> Does it compile with -Werror? -Werror turns warnings into errors.

I tried this option.
My gcc looks like it understands -Werror option, and as a result,
the following error occurred:

eina_hash.c: In function `_eina_hash_rbtree_each':
eina_hash.c:242: warning: dereferencing type-punned pointer will break 
strict-aliasing rules


> 
> > But if there is a proper way to successfully compile eina using gcc 3.3.6,
> > I'd like know it. Any help is appreciated.

--Yasufumi

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to