Mercurial > hg > xemacs-beta
diff src/objects-tty.c @ 4710:3a87551bfeb5
Fixes for a number of minor warnings issued by gcc. See xemacs-patches message
<870180fe0910051206s13dca5c3j6303732e33c478f5@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Mon, 05 Oct 2009 13:07:34 -0600 |
parents | 4143b78d0df0 |
children | 19a72041c5ed e0db3c197671 |
line wrap: on
line diff
--- a/src/objects-tty.c Mon Oct 05 11:08:59 2009 -0600 +++ b/src/objects-tty.c Mon Oct 05 13:07:34 2009 -0600 @@ -30,6 +30,12 @@ #include "device.h" #include "charset.h" +#ifdef NEW_GC +# define UNUSED_IF_NEW_GC(decl) UNUSED (decl) +#else +# define UNUSED_IF_NEW_GC(decl) decl +#endif + /* An alist mapping from color names to a cons of (FG-STRING, BG-STRING). */ Lisp_Object Vtty_color_alist; #if 0 /* This stuff doesn't quite work yet */ @@ -219,7 +225,7 @@ } static void -tty_finalize_color_instance (Lisp_Color_Instance *c) +tty_finalize_color_instance (Lisp_Color_Instance *UNUSED_IF_NEW_GC (c)) { #ifndef NEW_GC if (c->data) @@ -314,7 +320,7 @@ } static void -tty_finalize_font_instance (Lisp_Font_Instance *f) +tty_finalize_font_instance (Lisp_Font_Instance *UNUSED_IF_NEW_GC (f)) { #ifndef NEW_GC if (f->data)