From 182f58aeacc32908883b6b7d8d808c0ca16b5c0a Mon Sep 17 00:00:00 2001 From: Nelson Ferreira Date: Sun, 6 Dec 2015 16:50:21 -0500 Subject: [PATCH 1/1] Add some prototype to silence silly warnings. * 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 --- src/effi.c | 2 ++ src/media/sound-jack.c | 3 +++ src/mule/file-coding.c | 6 +++++- src/print.c | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/effi.c b/src/effi.c index 6baf2e6..06bf61b 100644 --- a/src/effi.c +++ b/src/effi.c @@ -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) diff --git a/src/media/sound-jack.c b/src/media/sound-jack.c index 3cd1194..353b077 100644 --- a/src/media/sound-jack.c +++ b/src/media/sound-jack.c @@ -335,6 +335,9 @@ finish: /* 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) { diff --git a/src/mule/file-coding.c b/src/mule/file-coding.c index ce640a1..b2dcd9a 100644 --- a/src/mule/file-coding.c +++ b/src/mule/file-coding.c @@ -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" diff --git a/src/print.c b/src/print.c index 47c5f48..d1d3c2a 100644 --- a/src/print.c +++ b/src/print.c @@ -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 -- 2.25.1