Ad Widget

Collapse

Compilation warnings on OS X

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DarwinXNU
    Junior Member
    • Dec 2014
    • 2

    #1

    Compilation warnings on OS X

    When building 64-bit agent (2.4.2) on OS X 10.9 I get several warnings like this:

    Code:
    gcc -DHAVE_CONFIG_H -I. -I../../../include     -g -O2    -MT misc.o -MD -MP -MF .deps/misc.Tpo -c -o misc.o misc.c
    misc.c:1810:48: warning: format specifies type 'unsigned long *' but the argument has type 'uint64_t *' (aka 'unsigned long long *') [-Wformat]
                    if (sscanf(start,ZBX_FS_UI64 "-" ZBX_FS_UI64,&i1,&i2) == 2)
    If I build a 32-bit version with:
    Code:
    CFLAGS="-arch i386" ./configure --enable-agent
    ...I don't get the warnings. I'm not sure how much of an issue these warnings are, documentation recommends using 64-bit agent on a 64-bit platform and the agent seems to run normally.

    Has anyone noticed any problems with the 64-bit agent, or 32-bit agent on a 64-bit OS X?
Working...