Add some prototype to silence silly warnings.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:50:21 +0000 (16:50 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:51:10 +0000 (16:51 -0500)
* src/effi.c(ffi_make_callback_x86): Add  prototype.
* src/media/sound-jack.c (demux_internal): Ditto.
* src/mule/file-coding.c (autodetect_real_coding_system): Ditto.
* src/print.c (float_to_string): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/effi.c
src/media/sound-jack.c
src/mule/file-coding.c
src/print.c

index 6baf2e6..06bf61b 100644 (file)
@@ -1666,6 +1666,8 @@ Return DEVICE display as FFI object.
 /* Callbacks */
 #define FFI_CC_CDECL 0
 
+void* ffi_make_callback_x86(Lisp_Object data, int cc_type);
+
 #if defined __i386__
 static void
 ffi_callback_call_x86(Lisp_Object cbk_info, char *arg_buffer)
index 3cd1194..353b077 100644 (file)
@@ -335,6 +335,9 @@ finish:
 \f
 /* pull one channel out of a multi-channel stream */
 static size_t
+demux_internal(float *dst, char *src,
+              size_t n, int chan, sound_jack_aj_data_t *f);
+static size_t
 demux_internal(float *dst, char *src,
               size_t n, int chan, sound_jack_aj_data_t *f)
 {
index ce640a1..b2dcd9a 100644 (file)
@@ -1852,7 +1852,11 @@ static Lisp_Object coding_system_from_mask(int mask)
 
 void
 autodetect_real_coding_system(lstream_t stream, Lisp_Object * codesys_in_out,
-                            eol_type_t * eol_type_in_out)
+                             eol_type_t * eol_type_in_out);
+
+void
+autodetect_real_coding_system(lstream_t stream, Lisp_Object * codesys_in_out,
+                             eol_type_t * eol_type_in_out)
 {
        static const char mime_name_valid_chars[] =
                "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
index 47c5f48..d1d3c2a 100644 (file)
@@ -912,6 +912,8 @@ Display ERROR-OBJECT on STREAM in a user-friendly way.
 
 Lisp_Object Vfloat_output_format;
 
+void float_to_string(char *buf, fpfloat data, int maxlen);
+
 /*
  * This buffer should be at least as large as the max string size of the
  * largest float, printed in the biggest notation.  This is undoubtedly