lkml.org 
[lkml]   [2022]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] linux/find: ignore -Wtype-limits to reduce W=2 warnings by 34% tree-wide
    On Tue, Apr 26, 2022 at 6:16 PM Vincent Mailhol
    <mailhol.vincent@wanadoo.fr> wrote:

    > +__diag_push();
    > +__diag_ignore(GCC, 8, "-Wtype-limits",
    > + "GENMASK(size - 1, 0) yields 'comparison of unsigned expression in < 0 is always false' which is OK");
    > +

    Are you sure gcc-8 is the correct version to check for? If older
    versions had this
    already, you may have to add the magic bits in the compiler-gcc.h header.

    Otherwise, this looks sensible to me.

    Arnd

    \
     
     \ /
      Last update: 2022-04-26 20:57    [W:4.281 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site