* [PATCH] Fix warning about extra semicolon in guile-snarf output
@ 2011-09-18 21:09 Julian Graham
2011-09-19 20:14 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Julian Graham @ 2011-09-18 21:09 UTC (permalink / raw)
To: guile-devel
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
Hey Guilers,
Long time no see! I was porting some code I wrote to use
`guile-snarf' for doing gsubr binding, and I noticed that if you've
got -pedantic and -Wall turned on, GCC complains that the code
generated by snarfing has an extra semicolon:
"ISO C does not allow extra ; outside of a function"
The attached patch fixes that issue by removing a semicolon from the
expansion of `SCM_STATIC_SUBR_OBJVECT'. Anyone mind if I apply it?
Regards,
Julian
[-- Attachment #2: 0001-Remove-extraneous-semicolon-from-SCM_STATIC_SUBR_OBJ.patch --]
[-- Type: text/x-diff, Size: 1059 bytes --]
From 7cd2bf271d2063cdc3bd2827f7dc5fd9e928b446 Mon Sep 17 00:00:00 2001
From: Julian Graham <julian@navigator.(none)>
Date: Sun, 18 Sep 2011 16:58:47 -0400
Subject: [PATCH] Remove extraneous semicolon from `SCM_STATIC_SUBR_OBJVECT' to prevent ISO
C90 warning.
* snarf.h (SCM_STATIC_SUBR_OBJVECT): Remove semicolon at end of macro
definition.
---
libguile/snarf.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libguile/snarf.h b/libguile/snarf.h
index b0800c4..1c072ba 100644
--- a/libguile/snarf.h
+++ b/libguile/snarf.h
@@ -372,7 +372,7 @@ SCM_SNARF_INIT(scm_set_smob_apply((tag), (c_name), (req), (opt), (rest));)
SCM_PACK (0), \
foreign, \
SCM_BOOL_F, /* the name */ \
- }; \
+ }
#define SCM_STATIC_PROGRAM(c_name, objcode, objtable, freevars) \
static SCM_ALIGNED (8) SCM_UNUSED SCM \
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix warning about extra semicolon in guile-snarf output
2011-09-18 21:09 [PATCH] Fix warning about extra semicolon in guile-snarf output Julian Graham
@ 2011-09-19 20:14 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2011-09-19 20:14 UTC (permalink / raw)
To: guile-devel
Hi Julian!
Julian Graham <joolean@gmail.com> skribis:
> The attached patch fixes that issue by removing a semicolon from the
> expansion of `SCM_STATIC_SUBR_OBJVECT'. Anyone mind if I apply it?
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-19 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18 21:09 [PATCH] Fix warning about extra semicolon in guile-snarf output Julian Graham
2011-09-19 20:14 ` Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).