Avoid warning with GCC on FreeBSD 6.2 in `numbers.c'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 7 May 2008 15:43:17 +0000 (17:43 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 7 May 2008 15:43:17 +0000 (17:43 +0200)
libguile/ChangeLog
libguile/numbers.c

index c0b6b3df88016c2ba27169e576cdc49f5ec7763f..6c254432a9cec62cc39a9a7f2aa803ac6a3e084a 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-07  Ludovic Courtès  <ludo@gnu.org>
+
+       * numbers.c (scm_from_complex_double): Mark as `SCM_UNUSED'.
+       This fixes compilation with `-Werror' on FreeBSD 6.2 (i386).
+
 2008-05-05  Neil Jerram  <neil@ossau.uklinux.net>
 
        * c-tokenize.lex: #define YY_NO_INPUT.
index 1191042f8513ca96827d7460b043a53c87611843..4a458c4a1172de390eb788575d4b0ede166dfcf5 100644 (file)
@@ -170,8 +170,10 @@ xisnan (double x)
 #define SCM_COMPLEX_VALUE(z)                                    \
   (SCM_COMPLEX_REAL (z) + GUILE_I * SCM_COMPLEX_IMAG (z))
 
+static inline SCM scm_from_complex_double (complex double z) SCM_UNUSED;
+
 /* Convert a C "complex double" to an SCM value. */
-static SCM
+static inline SCM
 scm_from_complex_double (complex double z)
 {
   return scm_c_make_rectangular (creal (z), cimag (z));