Adding warning removal attr

This commit is contained in:
Jay McCarthy 2010-06-21 13:04:40 -06:00
parent a5d9fc0def
commit e191513f70
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,12 @@
# endif
#endif
# ifdef __GNUC__
# define MAYBE_UNUSED __attribute__((unused))
# else
# define MAYBE_UNUSED
# endif
/***************************************************************************/
/*** See README for a general overview of the interface architecture. ***/
/***************************************************************************/

View File

@ -185,7 +185,7 @@ static void fprintf_debug(NewGC *gc, mpage *page, const char *msg, objhead *info
# endif
#else
# define GCVERBOSEPAGE(gc, msg, page) /* EMPTY */
static void GCVERBOSEprintf(NewGC *gc, const char *fmt, ...) {
MAYBE_UNUSED static void GCVERBOSEprintf(NewGC *gc, const char *fmt, ...) {
}
#endif