Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-7046

mod_verto compile under MSVC2012 has a few warnings that need to be checked on.

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.4.15
    • Fix Version/s: None
    • Component/s: Build-System
    • Labels:
      None
    • Environment:
      WINDOWS 8.1/MSVC2012
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      Microsoft Windows
    • Distribution:
      Microsoft Windows
    • Distribution Version:
      Microsoft Windows 8
    • Compiler:
      Microsoft Visual Studio
    • FreeSWITCH GIT Revision:
      dc9e9042d16554830bdec0d691f003f90057cfe2
    • GIT Master Revision hash::
      dc9e9042d16554830bdec0d691f003f90057cfe2

      Description

      90>c:\users\brian\src\freeswitch.git\src\include\switch_platform.h(110): warning C4005: 'strncasecmp' : macro redefinition
      190> c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mcast\mcast.h(56) : see previous definition of 'strncasecmp'
      190>mcast\mcast.c(71): warning C4133: 'function' : incompatible types - from 'uint32_t *' to 'const char *'
      190>mcast\mcast.c(87): warning C4133: 'function' : incompatible types - from 'ip_mreq *' to 'const char *'
      190>mcast\mcast.c(128): warning C4057: 'function' : 'const char *' differs in indirection to slightly different base types from 'unsigned char *'
      190> Running Code Analysis for C/C++...
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\ws.c(149): warning C28183: 'p' could be '0', and is a copy of the value found in 'p=((strstr(p, "?")+1))': this does not adhere to the specification for the function 'strstr'. See line 149 for an earlier location where this can occur: Lines: 138, 145, 146, 149
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\ws.c(149): warning C28182: Dereferencing NULL pointer. 'p' contains the same NULL value as 'p=((strstr(p, "?")+1))' did. : Lines: 138, 145, 146, 149
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\ws.c(314): warning C6053: The prior call to '_snprintf' might not zero-terminate string 'respond'.: Lines: 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 256, 260, 267, 271, 273, 277, 279, 280, 284, 285, 286, 288, 289, 290, 292, 296, 297, 298, 300, 304, 314
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(3979): warning C6053: The prior call to 'strncpy' might not zero-terminate string 'host'.: Lines: 3974, 3975, 3977, 3979
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(4986): warning C6271: Extra argument passed to 'switch_snprintf': _Param_(4) is not used by the format string.
      190> Generating Code...
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(107): warning C4702: unreachable code
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(5225): warning C4701: potentially uninitialized local variable 'JSON_STORE' used
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(5225): warning C4703: potentially uninitialized local pointer variable 'JSON_STORE' used
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(318): warning C4702: unreachable code
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(3763): warning C4702: unreachable code
      190>c:\users\brian\src\freeswitch.git\src\mod\endpoints\mod_verto\mod_verto.c(3768): warning C4702: unreachable code
      190> mcast_cpp.cpp
      190>mcast\mcast_cpp.cpp(43): warning C4244: 'argument' : conversion from 'int' to 'int16_t', possible loss of data
      190> Creating library C:\Users\brian\src\freeswitch.git\Win32\Debug\mod\mod_verto.lib and object C:\Users\brian\src\freeswitch.git\Win32\Debug\mod\mod_verto.exp
      190> mod_verto.2012.vcxproj -> C:\Users\brian\src\freeswitch.git\Win32\Debug\mod\mod_verto.dll
      ========== Build: 171 succeeded, 1 failed, 0 up-to-date, 18 skipped ==========

        Attachments

          Activity

            People

            • Assignee:
              jlenk Jeff Lenk
              Reporter:
              brian@freeswitch.org Brian West
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: