At first glance firefox uses the arithmetic pointer and Wno-pointer-arith
lifts warnings or errors when used.
This is what gcc says : error: pointer of type 'void *' used in arithmetic

What it gives without this flag and Is there a particular reason for using this
one ?

Regards,


On Mon, Feb 6, 2012 at 2:39 PM, Florian Philipp <li...@binarywings.net>wrote:

> Am 06.02.2012 05:56, schrieb Michael Mol:
> > On Fri, Feb 3, 2012 at 8:52 PM, Grant <emailgr...@gmail.com> wrote:
> >> Does anyone have any ideas on this?  I just completed an emerge -e
> >> world so I don't think anything needs to be re-emerged.  Everything
> >> compiles fine except for gcc-4.5.3-r1 (I'm on gcc-4.3.4) and
> >> firefox-9.0:
> >>
> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:
> >> In function 'void* MapAlignedPages(size_t, size_t)':
> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> error: pointer of type 'void *' used in arithmetic
> >>
> /var/tmp/portage/www-client/firefox-9.0/work/mozilla-release/js/src/jsgcchunk.cpp:243:
> >> error: pointer of type 'void *' used in arithmetic
> >
> > That looks like a change in how the compiler treats bad code, or the
> > introduction of bad code in an updated version of Firefox. The
> > compiler can't sanely do pointer arithmetic without knowing the
> > pointer type. Looks like the version you're compiling with throws an
> > error on that.
> >
> > Are using anything like -Werror and/or -Wall in your CFLAGS?
> >
> >
> >
> >
>
> Yes, enabling --Wno-pointer-arith should help.
>
> Regards,
> Florian Philipp
>
>

Reply via email to