Mercurial > hg > xemacs-beta
diff src/syntax.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 | 25e5e5346d31 |
children | aa5ed11f473b |
line wrap: on
line diff
--- a/src/syntax.c Mon Oct 05 11:08:59 2009 -0600 +++ b/src/syntax.c Mon Oct 05 13:07:34 2009 -0600 @@ -31,6 +31,12 @@ #include "syntax.h" #include "extents.h" +#ifdef NEW_GC +# define UNUSED_IF_NEW_GC(decl) UNUSED (decl) +#else +# define UNUSED_IF_NEW_GC(decl) decl +#endif + #define ST_COMMENT_STYLE 0x101 #define ST_STRING_STYLE 0x102 @@ -540,7 +546,7 @@ /* finalize the syntax cache for BUF */ void -uninit_buffer_syntax_cache (struct buffer *buf) +uninit_buffer_syntax_cache (struct buffer *UNUSED_IF_NEW_GC (buf)) { #ifndef NEW_GC xfree (buf->syntax_cache, struct syntax_cache *);