Coding Guidelines/Compiler Features: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(we assume GNU Make)
(note about G_GNUC_UNUSED)
 
Line 5: Line 5:
* GNU make
* GNU make
* basic shell tools to run 'autoconf' (including sed and awk)
* basic shell tools to run 'autoconf' (including sed and awk)
We work hard to eliminate compiler warnings.  The glib symbol <tt>G_GNUC_UNUSED</tt> can be used to avoid warnings about unused parameters:
void
my_callback(int fd, G_GNUC_UNUSED user_data) { ... }

Latest revision as of 14:02, 15 August 2008

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) { ... }