Coding Guidelines/Compiler Features: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(note about G_GNUC_UNUSED) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
** http://www-128.ibm.com/developerworks/linux/library/l-c99.html | ** http://www-128.ibm.com/developerworks/linux/library/l-c99.html | ||
** http://en.wikipedia.org/wiki/C_(programming_language)#C99 | ** http://en.wikipedia.org/wiki/C_(programming_language)#C99 | ||
* | * 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:
- C99 compiler (gcc or vendor compiler)
- GNU make
- basic shell tools to run 'autoconf' (including sed and awk)
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) { ... }