bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pedantic stuff: unif.c: void function returns void value


From: Mike Gran
Subject: pedantic stuff: unif.c: void function returns void value
Date: Sat, 11 Mar 2006 11:21:39 -0800 (PST)

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 
--- 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]