[sane-devel] Re: [sane-commit] CVS update: sane-backends/include/sane
Sat, 13 Nov 2004 20:53:27 +0100
On Sat, Nov 13, 2004 at 12:04:44PM -0700, firstname.lastname@example.org wrote:
> Date: Saturday November 13, 2004 @ 12:04
> Author: fzago-guest
> Update of /cvsroot/sane/sane-backends/include/sane
> In directory haydn:/tmp/cvs-serv11150
> Modified Files:
> Log Message:
> Added compiler attribute __unused__ for unused variables/functions.
+ * Compiler related options
+/* __unused tells the compiler a variable is unused, so the
+ * compiler doesn't spit a warning. */
+#define __unused__ __attribute__((unused))
Wouldn't that better fit to sanei_backend.h? I think we shouldn't
export such "helper" macros to all the frontends.