Everything compiled as C++ with these CFLAGS: c++ -O2 -g -Wall -mtune=pentium -DWIN32 -D_WIN32 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE___ATTRIBUTE__=1 -DHAVE_MEMCPY=1 -DHAVE_AF_INET6 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_SOCKADDR_STORAGE=1 -DHAVE_GAI_STRERROR=1 -DHAVE_SIGNAL -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DSNMP_FUNC_TYPE=WINAPI -mms-bitfields -DG_DISABLE_CAST_CHECKS -DPCRE_STATIC -fconserve-space -fno-rtti -I. -I./nbase -I./nsock/include -I./mswin32 -I../../libpcre -I../libpcap -I../libpcap/Win32/Include ------------------------- mswin32/winip/pcapsend.c: In function `int realsend(_ADAPTER*, const char*, int, BYTE*, BYTE*, int, DWORD, DWORD)': mswin32/winip/pcapsend.c:192: warning: int format, DWORD arg (arg 2) mswin32/winip/pcapsend.c:192: warning: int format, DWORD arg (arg 3) mswin32/winip/pcapsend.c:213: warning: int format, DWORD arg (arg 2) mswin32/winip/pcapsend.c: In function `unsigned int SendThreadProc(void*)': mswin32/winip/pcapsend.c:354: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:364: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:388: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:294: warning: unused variable 'nRes' mswin32/winip/pcapsend.c: In function `void AddPacketToQueue(const void*, int, DWORD, int)': mswin32/winip/pcapsend.c:483: warning: long unsigned int format, int arg (arg 3) mswin32/winip/pcapsend.c: In function `int ip2route(const in_addr*, DWORD*, DWORD*)': mswin32/winip/pcapsend.c:597: warning: int format, DWORD arg (arg 2) mswin32/winip/pcapsend.c: In function `_ADAPTER* if2adapter(int, BYTE*, int*, DWORD*)': mswin32/winip/pcapsend.c:649: warning: unused variable 'name' mswin32/winip/pcapsend.c: In function `int pcapsendraw(const char*, int, sockaddr*, int)': mswin32/winip/pcapsend.c:742: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:720: warning: unused variable 'cb' mswin32/winip/pcapsend.c: In function `void pcapsend_init()': mswin32/winip/pcapsend.c:809: warning: long unsigned int format, int arg (arg 2) mswin32/winip/pcapsend.c:826: warning: long unsigned int format, int arg (arg 2) mswin32/winip/pcapsend.c: In function `int get_best_route(DWORD, MIB_IPFORWARDROW*)': mswin32/winip/pcapsend.c:937: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:962: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:968: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:973: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:975: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c:975: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c: In function `int lookupip(DWORD, DWORD)': mswin32/winip/pcapsend.c:1011: warning: unused variable 'time' mswin32/winip/pcapsend.c: In function `int SearchARP(DWORD, int, BYTE*, int*)': mswin32/winip/pcapsend.c:1127: warning: comparison between signed and unsigned integer expressions mswin32/winip/pcapsend.c: In function `int get_best_route(DWORD, MIB_IPFORWARDROW*)': mswin32/winip/pcapsend.c:949: warning: 'bestmask' might be used uninitialized in this function mswin32/winip/pcapsend.c:949: warning: 'bestmetric' might be used uninitialized in this function mswin32/winip/pcapsend.c: At global scope: mswin32/winip/pcapsend.c:855: warning: 'num_names' defined but not used mswin32/winip/rawrecv.c: In function `pcap_t* rawrecv_open(const char*)': mswin32/winip/rawrecv.c:77: warning: long unsigned int format, int arg (arg 2) mswin32/winip/rawrecv.c: In function `char* rawrecv_readip(pcap_t*, unsigned int*, long int, timeval*)': mswin32/winip/rawrecv.c:131: warning: comparison between signed and unsigned integer expressions mswin32/winip/rawrecv.c:160:2: warning: no newline at end of file mswin32/winip/winip.c: In function `void winip_postopt_init()': mswin32/winip/winip.c:255: warning: comparison between signed and unsigned integer expressions mswin32/winip/winip.c:257: warning: comparison between signed and unsigned integer expressions mswin32/winip/winip.c:361: warning: `and' of mutually exclusive equal-tests is always 0 mswin32/winip/winip.c: In function `void winip_init_pcap(char*)': mswin32/winip/winip.c:433: warning: unused variable 'phys' mswin32/winip/winip.c: In function `void winip_list_interfaces()': mswin32/winip/winip.c:627: warning: wchar_t format, different type arg (arg 2) nsock/src/netutils.c:79: warning: 'netutils_debugging' defined but not used nsock/src/nsock_core.c: In function `void handle_connect_result(mspool*, msevent*, nse_status)': nsock/src/nsock_core.c:278: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:279: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:280: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:281: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:282: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:283: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c: In function `void handle_write_result(mspool*, msevent*, nse_status)': nsock/src/nsock_core.c:384: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:385: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:387: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:388: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:389: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:390: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c: In function `int do_actual_read(mspool*, msevent*)': nsock/src/nsock_core.c:447: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c: In function `void handle_read_result(mspool*, msevent*, nse_status)': nsock/src/nsock_core.c:583: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:584: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:586: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:587: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:588: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:589: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c: In function `void nsp_add_event(mspool*, msevent*)': nsock/src/nsock_core.c:851: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:852: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:853: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:861: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c:872: warning: comparison between signed and unsigned integer expressions nsock/src/nsock_core.c: In function `nsock_loopstatus nsock_loop(void*, int)': nsock/src/nsock_core.c:89: warning: 'sock_err' might be used uninitialized in this function nsock/src/nsock_write.c: In function `nsock_event_id nsock_printf(void*, void*, void (*)(void*, void*, void*), int, void*, char*, ...)': nsock/src/nsock_write.c:121: warning: comparison between signed and unsigned integer expressions nmap.cc: In function `int nmap_fetchfile(char*, int, char*)': nmap.cc:1875: warning: unused variable 'pw' nmap_rpc.cc: In function `void get_rpc_results(Target*, portinfo*, scanstats*, portinfolist*, rpcscaninfo*)': nmap_rpc.cc:483: warning: comparison between signed and unsigned integer expressions nmap_rpc.cc:487: warning: comparison between signed and unsigned integer expressions nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 2) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 3) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 4) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 5) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 7) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 8) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 9) nmap_rpc.cc:528: warning: int format, long unsigned int arg (arg 10) nmap_rpc.cc: In function `int send_rpc_query(const in_addr*, short unsigned int, int, long unsigned int, int, int)': nmap_rpc.cc:286: warning: 'err' might be used uninitialized in this function scan_engine.cc: In member function `bool ConnectScanInfo::watchSD(int)': scan_engine.cc:521: warning: comparison between signed and unsigned integer expressions scan_engine.cc:522: warning: comparison between signed and unsigned integer expressions scan_engine.cc:523: warning: comparison between signed and unsigned integer expressions scan_engine.cc: In member function `bool ConnectScanInfo::clearSD(int)': scan_engine.cc:537: warning: comparison between signed and unsigned integer expressions scan_engine.cc:538: warning: comparison between signed and unsigned integer expressions scan_engine.cc:539: warning: comparison between signed and unsigned integer expressions services.cc: In function `int nmap_services_init()': services.cc:122: warning: int format, DWORD arg (arg 3) Target.cc: In member function `void Target::GenerateIPString()': Target.cc:148: warning: unused variable 'sin6' TargetGroup.cc: In member function `int TargetGroup::get_next_host(sockaddr_storage*, size_t*)': TargetGroup.cc:283: warning: unused variable 'sin6' targets.cc: In function `int hostupdate(Target**, Target*, int, int, int, timeout_info*, timeval*, timeval*, pingtune*, tcpqueryinfo*, pingstyle)': targets.cc:165: warning: comparison between signed and unsigned integer expressions targets.cc:166: warning: comparison between signed and unsigned integer expressions targets.cc:167: warning: comparison between signed and unsigned integer expressions targets.cc: In function `int sendconnecttcpquery(Target**, tcpqueryinfo*, Target*, int, u16, timeval*, pingtune*, timeout_info*, int)': targets.cc:702: warning: comparison between signed and unsigned integer expressions targets.cc:703: warning: comparison between signed and unsigned integer expressions targets.cc:704: warning: comparison between signed and unsigned integer expressions targets.cc:640: warning: unused variable 'sin6' targets.cc: In function `int get_ping_results(int, pcap_t*, Target**, int, timeval*, pingtune*, timeout_info*, int, pingtech*, scan_lists*)': targets.cc:1082: warning: comparison between signed and unsigned integer expressions targets.cc:1083: warning: comparison between signed and unsigned integer expressions In file included from tcpip.cc:120: ./mswin32/pcap-int.h:147:7: warning: no newline at end of file tcpip.cc: In function `pcap_t* my_real_pcap_open_live(char*, int, int, int)': tcpip.cc:473: warning: too few arguments for format tcpip.cc: In function `u8* build_udp_raw(in_addr*, const in_addr*, int, u16, u16, u16, char*, u16, u32*)': tcpip.cc:944: warning: statement has no effect tcpip.cc: In function `void max_rcvbuf(int)': tcpip.cc:2092: warning: unused variable 'optval' tcpip.cc:2093: warning: unused variable 'optlen' tcpip.cc: In function `int recvtime(int, char*, int, int, int*)': tcpip.cc:2184: warning: comparison between signed and unsigned integer expressions In file included from mswin32/winip/MibAccess.cpp:26: mswin32/winip/MibAccess.h: In member function `void MIBTraverser::Init(AsnObjectIdentifier*, UINT)': mswin32/winip/MibAccess.h:157: warning: comparison between signed and unsigned integer expressions mswin32/winip/MibAccess.h: In member function `void MIBTraverser::clean()': mswin32/winip/MibAccess.h:164: warning: comparison between signed and unsigned integer expressions In file included from mswin32/winip/MibAccess.cpp:26: mswin32/winip/MibAccess.h:206:7: warning: no newline at end of file In file included from mswin32/winip/snmp95.cpp:35: mswin32/winip/MibAccess.h: In member function `void MIBTraverser::Init(AsnObjectIdentifier*, UINT)': mswin32/winip/MibAccess.h:157: warning: comparison between signed and unsigned integer expressions mswin32/winip/MibAccess.h: In member function `void MIBTraverser::clean()': mswin32/winip/MibAccess.h:164: warning: comparison between signed and unsigned integer expressions In file included from mswin32/winip/snmp95.cpp:35: mswin32/winip/MibAccess.h:206:7: warning: no newline at end of file mswin32/winip/snmp95.cpp: In function `DWORD GetIfTableSafe(MIB_IFTABLE*, DWORD*, BOOL)': mswin32/winip/snmp95.cpp:250: warning: converting of negative value `-0x000000001' to `DWORD' mswin32/winip/snmp95.cpp: In function `DWORD GetIpNetTableSafe(MIB_IPNETTABLE*, DWORD*, BOOL)': mswin32/winip/snmp95.cpp:358: warning: converting of negative value `-0x000000001' to `DWORD' mswin32/winip/snmp95.cpp:375: warning: comparison between signed and unsigned integer expressions mswin32/winip/snmp95.cpp:389: warning: comparison between signed and unsigned integer expressions mswin32/winip/snmp95.cpp: In function `DWORD GetIpForwardTableSafe(MIB_IPFORWARDTABLE*, DWORD*, BOOL)': mswin32/winip/snmp95.cpp:416: warning: converting of negative value `-0x000000001' to `DWORD' mswin32/winip/snmp95.cpp: At global scope: mswin32/winip/snmp95.cpp:138: warning: 'int compip(const void*, const void*)' defined but not used