Coding Guidelines/Compiler Features

From wiki.zmanda.com
Revision as of 14:02, 15 August 2008 by Dustin (talk | contribs) (note about G_GNUC_UNUSED)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Amanda assumes the following are available during compilation:

We work hard to eliminate compiler warnings. The glib symbol G_GNUC_UNUSED can be used to avoid warnings about unused parameters:

void
my_callback(int fd, G_GNUC_UNUSED user_data) { ... }