lkml.org 
[lkml]   [2005]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.6.14 assorted warnings
    On Sun, Oct 30, 2005 at 10:25:43PM +0000, Al Viro wrote:
    > static inline __attribute__((always_inline)) int bar(int n, int *idx)
    > {
    > if (n != 1)
    > return 0;
    > *idx = 1;
    > return 1;
    > }
    > void baz(int *v, int n)
    > {
    > int idx;
    > int p = bar(n, &idx);
    > if (__builtin_expect(!p, 0))
    > return;
    > *v |= idx;
    > }
    >
    > and try gcc -Wall on that.

    Duh. gcc -Wall -Os, of course
    -
    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-10-30 23:35    [W:0.019 / U:0.164 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site