Compilation warnings under OS X

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 4.0.0alpha3, 4.0 (plan)
    • Affects Version/s: None
    • Component/s: Agent (G)
    • None
    • Sprint 24, Sprint 25
    • 1

      /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libzbxnix.a(coredump.o) has no symbols
      /Library/Developer/CommandLineTools/usr/bin/ranlib: file: libzbxnix.a(coredump.o) has no symbols
      sysinfo.c:409:35: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
                              printf(" [u|" ZBX_FS_UI64 "]", result.ui64);
                                                             ^~~~~~~~~~~
      sysinfo.c:695:7: warning: format specifies type 'unsigned long *' but the argument has type 'uint64_t *' (aka 'unsigned long long *') [-Wformat]
                                                      ZBX_OCT2UINT64(value_uint64, c);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../include/zbxtypes.h:157:66: note: expanded from macro 'ZBX_OCT2UINT64'
      #define ZBX_OCT2UINT64(uint, string) sscanf(string, ZBX_FS_UO64, &uint)
                                                                       ^~~~~
      sysinfo.c:710:7: warning: format specifies type 'unsigned long *' but the argument has type 'uint64_t *' (aka 'unsigned long long *') [-Wformat]
                                                      ZBX_HEX2UINT64(value_uint64, c);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../include/zbxtypes.h:158:66: note: expanded from macro 'ZBX_HEX2UINT64'
      #define ZBX_HEX2UINT64(uint, string) sscanf(string, ZBX_FS_UX64, &uint)
                                                                       ^~~~~
      sysinfo.c:717:7: warning: format specifies type 'unsigned long *' but the argument has type 'uint64_t *' (aka 'unsigned long long *') [-Wformat]
                                                      ZBX_HEX2UINT64(value_uint64, c);
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../../include/zbxtypes.h:158:66: note: expanded from macro 'ZBX_HEX2UINT64'
      #define ZBX_HEX2UINT64(uint, string) sscanf(string, ZBX_FS_UX64, &uint)
                                                                       ^~~~~
      4 warnings generated.
      

            Assignee:
            Michael Veksler
            Reporter:
            Alexander Vladishev
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: