[lkml]   [2009]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] fix BUILD_BUG_ON() and a couple of bogus uses of it
    On Wed, 19 Aug 2009 01:29:25 am Jan Beulich wrote:
    > Note that in the gfp.h, kmemcheck.h, and virtio_config.h cases
    > MAYBE_BUILD_BUG_ON() really just serves documentation purposes - even
    > if the expression is compile time constant (__builtin_constant_p()
    > yields true), the array is still deemed of variable length by gcc, and
    > hence the whole expression doesn't have the intended effect.

    How annoying. A gcc build assert extension would be great here?


     \ /
      Last update: 2009-09-22 08:47    [W:0.018 / U:10.756 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site