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

make fail address of array 'nh->nh_home' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 20.19.5
    • Fix Version/s: 1.10.0, 20.19.6
    • Component/s: Build-System
    • Labels:
      None
    • Environment:
      Mac OS all, 10.14.5, 10.13, 10.12
    • CPU Architecture:
      x86-64
    • Kernel:
      OS X (Mach)
    • uname:
      Darwin FS-1012.local 16.7.0 Darwin Kernel Version 16.7.0: Wed Apr 24 20:50:53 PDT 2019; root:xnu-3789.73.49~1/RELEASE_X86_64 x86_64
    • Userland:
      OS X
    • Distribution:
      OS X
    • Distribution Version:
      OS X 10.10
    • Compiler:
      gcc
    • Compiler Version:
      Apple LLVM version 9.0.0 (clang-900.0.39.2)
    • FreeSWITCH GIT Revision:
      00af023c191cda5c5ad3d1a633dd6e194de7a25b
    • GIT Master Revision hash::
      00af023c191cda5c5ad3d1a633dd6e194de7a25b

      Description

      New since a week ago. make fails with clay finding logic error below:

      /Library/Developer/CommandLineTools/usr/bin/make all-am
      CC test/test_sofia_funcs-test_sofia_funcs.o
      CC libsofiamod_la-mod_sofia.lo
      CC libsofiamod_la-sofia.lo
      CC libsofiamod_la-sofia_json_api.lo
      CC libsofiamod_la-sofia_glue.lo
      CC libsofiamod_la-sofia_presence.lo
      sofia_presence.c:4076:17: error: address of array 'nh->nh_home' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
      if (nh && nh->nh_home) {
      ~~ ~~~^~~~~~
      1 error generated.
      make[5]: *** [libsofiamod_la-sofia_presence.lo] Error 1
      make[4]: *** [all] Error 2
      make[3]: *** [mod_sofia-all] Error 1

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              mario_fs Mario G
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: