moxi won't build with some platforms/gcc versions
ingenthr opened this issue · 1 comments
gcc with -Werror will block if uint64_t isn't cast to long long unsigned int
This appears in many places in agent_stats.c:
agent_stats.c:94: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c: In function ‘map_proxy_stats_foreach_emit’:
agent_stats.c:310: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:312: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:314: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:316: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:318: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:320: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
agent_stats.c:322: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
ubuntu@domU-12-31-35-00-0D-C1:~/src/proxybuild$ gcc --version
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ubuntu@domU-12-31-35-00-0D-C1:~/src/proxybuild$ uname -a
Linux domU-12-31-35-00-0D-C1.z-2.compute-1.internal 2.6.24-6-xen #1 SMP Wed Apr 8 13:52:38 UTC 2009 x86_64 GNU/Linux
steve closed this a while ago