[lkml]   [2004]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] fix warning about duplicate 'const'
    Richard Henderson writes:
    > On Wed, Mar 10, 2004 at 07:43:10AM -0800, Linus Torvalds wrote:
    > > Ok, let's try just stripping the "const" out of the min/max macros, and
    > > see what complains.
    > I remember what complains. You get actual errors from
    > const int x;
    > int y;
    > min(x, y);

    Can you explain *why* we have to produce a diagnostic for "const const
    int" by default?

    Can't we dispatch such things to "-pedantic" ? Or treat "const const"
    like "long long" used to be, a gcc extension?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:01    [W:0.020 / U:6.952 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site