[lkml]   [2011]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v3 0/2] Stop some of the abuse of BUG() where compile time checks should be used.
    David Daney <> wrote:

    > We thought about doing that, but without doing some complex preprocessor fu,
    > the GCC attribute ((error())) thing doesn't do what we want.
    > It appears that if more than a single instance of the construct is used in a
    > compilation unit, the string emitted by the compiler for any of the violations
    > will be the last string encountered.

    Have you tried asking the gcc folks if this is likely to get fixed soon?


     \ /
      Last update: 2011-11-24 11:27    [W:0.017 / U:14.272 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site