[OpenSIPS-Devel] [OpenSIPS/opensips] 94c50b: Work around a few poor compiler warnings

Liviu Chircu noreply at github.com
Wed Apr 24 06:01:57 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 94c50b7811e1af69ef1400c531b0b6196e3ffb39
      https://github.com/OpenSIPS/opensips/commit/94c50b7811e1af69ef1400c531b0b6196e3ffb39
  Author: Walter Doekes <walter+github at wjd.nu>
  Date:   2019-04-23 (Tue, 23 Apr 2019)

  Changed paths:
    M modules/b2b_logic/b2b_logic.c
    M modules/rabbitmq/rmq_servers.c
    M modules/sip_i/isup.c
    M modules/tracer/tracer.c
    M modules/usrloc/dlist.c

  Log Message:
  -----------
  Work around a few poor compiler warnings

Like:

    dlist.c: In function ‘get_all_ucontacts’:
    dlist.c:759:37: error: ‘next_hop_host’ may be used uninitialized in this
      function [-Werror=maybe-uninitialized]

And:

    In function ‘memcpy’,
      inlined from ‘get_domain_db_ucontacts’ at dlist.c:294:4:
    /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: error:
      ‘__builtin_memcpy’: specified size between 18446744071562067968 and
      18446744073709551615 exceeds maximum object size 9223372036854775807
      [-Werror=stringop-overflow=]

And one probable bug:

    b2b_logic.c: In function ‘mi_b2b_list’:
    b2b_logic.c:1548:10: error: ‘server_item’ may be used uninitialized in this
        function [-Werror=maybe-uninitialized]
    ^- should be client_item


  Commit: 1a38e8dc309e7c5bf90d615ee4c58286ee967aaf
      https://github.com/OpenSIPS/opensips/commit/1a38e8dc309e7c5bf90d615ee4c58286ee967aaf
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-04-24 (Wed, 24 Apr 2019)

  Changed paths:
    M modules/b2b_logic/b2b_logic.c
    M modules/rabbitmq/rmq_servers.c
    M modules/sip_i/isup.c
    M modules/tracer/tracer.c
    M modules/usrloc/dlist.c

  Log Message:
  -----------
  Merge pull request #1674 from wdoekes/fix-compiler-warnings

Work around a few poor compiler warnings


Compare: https://github.com/OpenSIPS/opensips/compare/388ab01b5119...1a38e8dc309e



More information about the Devel mailing list