lkml.org 
[lkml]   [2006]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] SPI: improve sysfs compiler complaint handling
    From
    Date

    > Does anyone know why the GCC folk have decided to go against decades
    > of common practice here???

    because it's new semantics. I was involved in this GCC feature (not in
    the coding just in the asking for it) and this behavior was specifically
    requested: It is called __must_check, you MUST CHECK it. It's not the
    normal "unused warning", by putting the attribute on the function you
    tell gcc that the result MUST be checked. Just a cast to void isn't
    checking it.... so it rightfully warns.



    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-12 20:43    [W:0.020 / U:0.296 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site