Some compile warnings.

CentOS 6.3
gcc version 4.4.7 20120313

g++ -g -Wall -Ithird-party/credis-0.2.3 -I./third-party/mongoose -I./nDPI/src/include 
-I./third-party/LuaJIT-2.0.2/src -Ithird-party/rrdtool-1.4.7/src/ 
-I./third-party/zeromq-3.2.3/include -D SVN_RELEASE="6602" -I/usr/local/include 
-I/opt/local/include -I/var/lib/pgsql/PF_RING/kernel 
-I/var/lib/pgsql/PF_RING/userland/lib -I/var/lib/pgsql/PF_RING/userland/libpcap 
-Ithird-party/http-client-c/src/  -c Host.cpp -o Host.o
Host.cpp: In member function 'virtual bool Host::isIdle(u_int)':
Host.cpp:312: warning: comparison between signed and unsigned integer 
expressions

g++ -g -Wall -Ithird-party/credis-0.2.3 -I./third-party/mongoose -I./nDPI/src/include 
-I./third-party/LuaJIT-2.0.2/src -Ithird-party/rrdtool-1.4.7/src/ 
-I./third-party/zeromq-3.2.3/include -D SVN_RELEASE="6602" -I/usr/local/include 
-I/opt/local/include -I/var/lib/pgsql/PF_RING/kernel 
-I/var/lib/pgsql/PF_RING/userland/lib -I/var/lib/pgsql/PF_RING/userland/libpcap 
-Ithird-party/http-client-c/src/  -c NdpiStats.cpp -o NdpiStats.o
NdpiStats.cpp: In member function 'virtual const char* NdpiStats::serialize()':
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 5 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 6 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 7 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 8 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 5 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 6 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 7 has type 'u_int64_t'
NdpiStats.cpp:131: warning: format '%lu' expects type 'long unsigned int', but 
argument 8 has type 'u_int64_t'

g++  AddressResolution.o  Categorization.o  CollectorInterface.o EthStats.o  
Flow.o  FlowHash.o  GenericHash.o  GenericHashEntry.o GenericHost.o  
Geolocation.o  Host.o  HostHash.o  HTTPserver.o IpAddress.o  Lua.o  main.o  
Mutex.o  NdpiStats.o NetworkInterface.o  Ntop.o  NtopGlobals.o  ntop_win32.o  
patricia.o PcapInterface.o  PeriodicActivities.o  PF_RINGInterface.o  Prefs.o 
ProtoStats.o  Redis.o  StringHash.o  StringHost.o  Trace.o TrafficStats.o  
Utils.o third-party/credis-0.2.3/credis.o -Wall -L/usr/local/lib 
-L/opt/local/lib /var/lib/pgsql/PF_RING/userland/lib/libpfring.a 
./nDPI/src/lib/.libs/libndpi.a  -lpcap 
./third-party/LuaJIT-2.0.2/src/libluajit.a 
third-party/rrdtool-1.4.7/src/.libs/librrd_th.a 
./third-party/zeromq-3.2.3/src/.libs/libzmq.a  -lxml2    -lm -ldl -lpthread 
-lrt -o ntopng
NtopGlobals.o: In function `NtopGlobals':
/var/lib/pgsql/ntopng/NtopGlobals.cpp:34: warning: the use of `tmpnam' is 
dangerous, better use `mkstemp'
./third-party/zeromq-3.2.3/src/.libs/libzmq.a(libzmq_la-ipc_listener.o): In 
function `zmq::ipc_listener_t::set_address(char const*)':
/var/lib/pgsql/ntopng/third-party/zeromq-3.2.3/src/ipc_listener.cpp:124: 
warning: the use of `tempnam' is dangerous, better use `mkstemp'

--
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: [email protected]
http://www.netwolves.com
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to