]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9840 mod_avmd: Fix implicit declaration warning
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 13 Dec 2016 20:09:45 +0000 (21:09 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 23 Dec 2016 20:44:30 +0000 (21:44 +0100)
Fix the following compile-time warning:

making all mod_avmd
make[7]: Entering directory '/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/src/mod/applications/mod_avmd'
  CC       mod_avmd_la-mod_avmd.lo
mod_avmd.c: In function 'avmd_process_sample':
mod_avmd.c:49:19: error: implicit declaration of function '__isinf' [-Werror=implicit-function-declaration]
 #define ISINF(x) (__isinf(x))
                   ^
mod_avmd.c:2038:33: note: in expansion of macro 'ISINF'
         if (ISNAN(amplitude) || ISINF(amplitude)) {
                                 ^
cc1: all warnings being treated as errors
Makefile:682: recipe for target 'mod_avmd_la-mod_avmd.lo' failed

Fix this by adding the declaration for __isinf(), the same is done for
__isnan() already

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/mod/applications/mod_avmd/mod_avmd.c

index 34566b15d8f8b9643a408ba2a0a2883b269d3eed..bc005f76e0a860a5ebecadb7d1d609f58a839b3f 100644 (file)
@@ -44,6 +44,7 @@
     #define ISINF(x) (isinf(x))
 #else
     int __isnan(double);
+       int __isinf(double);
     #define ISNAN(x) (__isnan(x))
     #define ISINF(x) (__isinf(x))
 #endif