Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11422

Compilation warnings under OS X

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.0alpha3, 4.0 (plan)
    • None
    • 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.
      

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

              Created:
              Updated:
              Resolved: