lkml.org 
[lkml]   [2002]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.5.8-dj1 : arch/i386/kernel/smpboot.c error
    Adam Kropelin wrote:
    > On Wed, Apr 17, 2002 at 08:28:19AM -0700, Martin J. Bligh wrote:
    >
    >>Adam Kropelin wrote:
    >>
    >>>Even though clustered_apic_mode is 0, the compiler still complains
    >>>about the second one and the first one doesn't depend on
    >>>clustered_apic_mode at all.
    >>>
    >>Hmmm ... not sure why the compiler complains about the second one,
    >>that's very strange ;-)
    >>
    >
    > I agree. The cpp ouput clealy shows
    >
    > if ((0) && (numnodes > 1)) {
    >
    > so I'm not sure why there's a problem.

    Is the thing generating the "(0)" a macro? If so, then the rules
    of C and the "&&" operator say that "if the first is false, the
    second needn't even be evaluated". Could that be what's causing
    the warning?
    ----------------------------------------------------------------------
    - Rick Stevens, SSE, VitalStream, Inc. rstevens@vitalstream.com -
    - 949-743-2010 (Voice) http://www.vitalstream.com -
    - -
    - We have enough youth, how about a fountain of SMART? -
    ----------------------------------------------------------------------

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:25    [W:0.030 / U:2.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site