[lkml]   [2004]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: __attribute__((unused))
    On Fri, 15 Oct 2004, Frank van Maarseveen wrote:

    > This makes sense, assuming the gcc info pages are correct:
    > `unused'
    > This attribute, attached to a function, means that the function is
    > meant to be possibly unused. GCC will not produce a warning for
    > this function. GNU C++ does not currently support this attribute
    > as definitions without parameters are valid in C++.
    > `used'
    > This attribute, attached to a function, means that code must be
    > emitted for the function even if it appears that the function is
    > not referenced. This is useful, for example, when the function is
    > referenced only in inline assembly.
    > So, a function could be "used" and "unused" at the same time:
    > unused -> don't warn
    > used -> don't discard

    Except that "used" already implies no warning as it makes the function
    not unused anymore.

    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: 2005-03-22 14:07    [W:0.027 / U:9.688 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site