comparison 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
comparison
equal deleted inserted replaced
4709:db7068430402 4710:3a87551bfeb5
28 #include "lisp.h" 28 #include "lisp.h"
29 29
30 #include "buffer.h" 30 #include "buffer.h"
31 #include "syntax.h" 31 #include "syntax.h"
32 #include "extents.h" 32 #include "extents.h"
33
34 #ifdef NEW_GC
35 # define UNUSED_IF_NEW_GC(decl) UNUSED (decl)
36 #else
37 # define UNUSED_IF_NEW_GC(decl) decl
38 #endif
33 39
34 #define ST_COMMENT_STYLE 0x101 40 #define ST_COMMENT_STYLE 0x101
35 #define ST_STRING_STYLE 0x102 41 #define ST_STRING_STYLE 0x102
36 42
37 Lisp_Object Qsyntax_table; 43 Lisp_Object Qsyntax_table;
538 } 544 }
539 545
540 /* finalize the syntax cache for BUF */ 546 /* finalize the syntax cache for BUF */
541 547
542 void 548 void
543 uninit_buffer_syntax_cache (struct buffer *buf) 549 uninit_buffer_syntax_cache (struct buffer *UNUSED_IF_NEW_GC (buf))
544 { 550 {
545 #ifndef NEW_GC 551 #ifndef NEW_GC
546 xfree (buf->syntax_cache, struct syntax_cache *); 552 xfree (buf->syntax_cache, struct syntax_cache *);
547 buf->syntax_cache = 0; 553 buf->syntax_cache = 0;
548 #endif /* not NEW_GC */ 554 #endif /* not NEW_GC */