* pedantic stuff: unif.c: void function returns void value
@ 2006-03-11 19:21 Mike Gran
2006-03-11 20:27 ` Neil Jerram
0 siblings, 1 reply; 2+ messages in thread
From: Mike Gran @ 2006-03-11 19:21 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
In 1.8.0, in unif.c, the static void function string_set() "returns"
the value of void function scm_c_string_set_x().
That type of construction is non-standard, I think, (but I couldn't
find a good reference for it). FWIW, the AIX xlc compiler believes it
to be an error, even though GCC has no problem with it and MS Visual
C++ just warns about that type of construction.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: pat2001701608 --]
[-- Type: text/plain, Size: 435 bytes --]
--- unif_v1.192.2.4.c 2006-03-11 08:45:53.000000000 -0800
+++ unif.c 2006-03-11 08:45:53.000000000 -0800
@@ -368,9 +368,9 @@
{
pos += h->base;
if (SCM_I_ARRAYP (h->array))
- return scm_c_string_set_x (SCM_I_ARRAY_V (h->array), pos, val);
+ scm_c_string_set_x (SCM_I_ARRAY_V (h->array), pos, val);
else
- return scm_c_string_set_x (h->array, pos, val);
+ scm_c_string_set_x (h->array, pos, val);
}
static void
[-- Attachment #3: Type: text/plain, Size: 136 bytes --]
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pedantic stuff: unif.c: void function returns void value
2006-03-11 19:21 pedantic stuff: unif.c: void function returns void value Mike Gran
@ 2006-03-11 20:27 ` Neil Jerram
0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2006-03-11 20:27 UTC (permalink / raw)
Cc: Bug Guile
Mike Gran <spk121@yahoo.com> writes:
> In 1.8.0, in unif.c, the static void function string_set() "returns"
> the value of void function scm_c_string_set_x().
>
> That type of construction is non-standard, I think, (but I couldn't
> find a good reference for it). FWIW, the AIX xlc compiler believes it
> to be an error, even though GCC has no problem with it and MS Visual
> C++ just warns about that type of construction.
Thanks, will be fixed very shortly in CVS (1.8 branch).
Neil
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-11 20:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-11 19:21 pedantic stuff: unif.c: void function returns void value Mike Gran
2006-03-11 20:27 ` Neil Jerram
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).