[lkml]   [2006]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: my handy-dandy, "coding style" script
    On Fri, 22 Dec 2006, Jan Engelhardt wrote:

    > >These casts can eliminate "return value unused" warnings.
    > But only when functions are tagged __must_check, and sprintf is not.
    > cmpxchg is one where (void) is 'needed', __as I wrote__ in a cxgb3
    > comment.

    gcc requires functions to be declared with the attribute
    warn_unused_result if a warning should be emitted in these cases. So
    casting sprintf or any function without warn_unused_result to (void) is
    only visual noise within the source code. Thus, the patch is correct.

    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: 2006-12-22 02:27    [W:0.021 / U:28.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site