According to GCC's own documentation for variable attributes, the correct syntax for declaring an unused attribute is __attribute__((unused)) .
However, in many examples and other online code, I often see __attribute__((__unused__)) instead, and they both seem to work.
Is there any reason to either indicate or omit __ anyway? Does it matter, and is there a preferred version? Are there situations where using one and not the other can cause problems?
Presumably, the same applies to other attribute parameters?
source share