1. 23 12月, 2016 4 次提交
    • Sebastian Kemper's avatar
      FS-9840 mod_avmd: Fix implicit declaration warning · 8c94e6f5
      Sebastian Kemper 提交于
      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: 's avatarSebastian Kemper <sebastian_ml@gmx.net>
      8c94e6f5
    • Sebastian Kemper's avatar
      FS-9840 sofia-sip: fix implicit declaration warning · 1568194c
      Sebastian Kemper 提交于
      This fixes the following compile-time warning:
      
      cc1: note: someone does not honour COPTS correctly, passed 2 times
      	 LTCOMPILE tport_type_connect.lo
      cc1: note: someone does not honour COPTS correctly, passed 2 times
      	 LTCOMPILE tport_type_ws.lo
      cc1: note: someone does not honour COPTS correctly, passed 2 times
      	 LTCOMPILE ws.lo
      cc1: note: someone does not honour COPTS correctly, passed 2 times
      ws.c: In function 'hton64':
      ws.c:730:14: error: implicit declaration of function '__bswap_64' [-Werror=implicit-function-declaration]
        else return __bswap_64(val);
                    ^
      cc1: all warnings being treated as errors
      Makefile:1465: recipe for target 'ws.lo' failed
      make[12]: *** [ws.lo] Error 1
      
      Fix by including byteswap.h, which is available on Linux and also
      everywhere glibc is used (wpa_supplicant includes this header the same
      way).
      Signed-off-by: 's avatarSebastian Kemper <sebastian_ml@gmx.net>
      1568194c
    • Sebastian Kemper's avatar
      FS-9840 mod-verto: fix implicit declaration warning · 8063ad65
      Sebastian Kemper 提交于
      This fixes the following compile-time warning:
      
      making all mod_verto
      make[7]: Entering directory '/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/src/mod/endpoints/mod_verto'
        CC       mod_verto_la-mod_verto.lo
        CC       mod_verto_la-ws.lo
      ws.c: In function 'hton64':
      ws.c:730:14: error: implicit declaration of function '__bswap_64' [-Werror=implicit-function-declaration]
        else return __bswap_64(val);
                    ^
      cc1: all warnings being treated as errors
      
      Fix by including byteswap.h, which is available on Linux and also
      everywhere glibc is used (wpa_supplicant includes this header the same
      way).
      Signed-off-by: 's avatarSebastian Kemper <sebastian_ml@gmx.net>
      8063ad65
    • Sebastian Kemper's avatar
      FS-9840 mod_sofia: fix redefine warning · 3a25d0b2
      Sebastian Kemper 提交于
      This fixes the following compile-time warning:
      
      make[8]: Entering directory '/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/src/mod/endpoints/mod_sofia'
        CC       mod_sofia_la-mod_sofia.lo
        CC       mod_sofia_la-sofia.lo
        CC       mod_sofia_la-sofia_glue.lo
        CC       mod_sofia_la-sofia_presence.lo
        CC       mod_sofia_la-sofia_reg.lo
        CC       mod_sofia_la-sofia_media.lo
        CC       mod_sofia_la-sip-dig.lo
      In file included from sip-dig.c:137:0:
      /home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/libs/sofia-sip/libsofia-sip-ua/bnf/../../config.h:522:0: error: "__BYTE_ORDER" redefined [-Werror]
       #define __BYTE_ORDER __BIG_ENDIAN
       ^
      In file included from /home/sk/tmp/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/sys/types.h:70:0,
                       from ../../../../src/include/switch.h:107,
                       from sip-dig.c:135:
      /home/sk/tmp/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/endian.h:11:0: note: this is the location of the previous definition
       #define __BYTE_ORDER __BYTE_ORDER__
       ^
      cc1: all warnings being treated as errors
      
      SWITCH_BYTE_ORDER is already used elsewhere in FS source and takes care
      of changing byte order without causing a warning
      Signed-off-by: 's avatarSebastian Kemper <sebastian_ml@gmx.net>
      3a25d0b2
  2. 13 12月, 2016 3 次提交
  3. 09 12月, 2016 3 次提交
  4. 07 12月, 2016 11 次提交
  5. 06 12月, 2016 3 次提交
  6. 05 12月, 2016 5 次提交
  7. 04 12月, 2016 3 次提交
  8. 03 12月, 2016 2 次提交
  9. 02 12月, 2016 6 次提交