Re: Spurious warning from gcc compiling kernel code

From: Norm Dresner (ndrez_at_att.net)
Date: 11/24/04


Date: Wed, 24 Nov 2004 22:38:17 GMT


"Erik Max Francis" <max@alcyone.com> wrote in message
news:sIadnQph0rcXmzjcRVn-2Q@speakeasy.net...
> Norm Dresner wrote:
>
> > Does this mean that there's really bad kernel code that ignores the
> > side-effects issue?
>
> Only if the kernel generates such warnings when you build it.
>

That's absolutely wrong! There was no bad code in my example -- there are
no side effects of comparing two scalar variables -- but I still got the
warning.

    Norm



Relevant Pages

  • Re: Spurious warning from gcc compiling kernel code
    ... "Erik Max Francis" wrote in message ... > Norm Dresner wrote: ... >> Does this mean that there's really bad kernel code that ignores the ... > Only if the kernel generates such warnings when you build it. ...
    (comp.os.linux.development.apps)
  • Candidates for inclusion in DEFAULTS
    ... Just looking through the kernel code, and there are many strong warnings (in ... GENERIC and various bits of code) that strongly advise *not* removing ... Prev by Date: ...
    (freebsd-current)