IPv6-DHCPv6 Example
Posted: Tue Mar 20, 2018 9:32 am
Using v2.8.6, when I build the IPv6-DHCPv6 example program I get the compiler warnings below.
Code: Select all
..\ip_util.cpp: In function 'void showLeaseInfo(IPV6_PREFIX*)':
..\ip_util.cpp:163:61: warning: unknown conversion type character 0xd in format [-Wformat=]
iprintf(" Server: %I\r\n", pPrefix->pDHCPD->m_IPAddress);
^
..\ip_util.cpp:163:61: warning: too many arguments for format [-Wformat-extra-args]
..\ip_util.cpp: In function 'void showIpAddresses()':
..\ip_util.cpp:183:53: warning: unknown conversion type character 'I' in format [-Wformat=]
iprintf("IP: %HI\r\n", InterfaceIP(ifn));
^
..\ip_util.cpp:183:53: warning: too many arguments for format [-Wformat-extra-args]
..\ip_util.cpp:184:55: warning: unknown conversion type character 'I' in format [-Wformat=]
iprintf("Mask: %HI\r\n", InterfaceMASK(ifn));
^
..\ip_util.cpp:184:55: warning: too many arguments for format [-Wformat-extra-args]
..\ip_util.cpp:185:54: warning: unknown conversion type character 'I' in format [-Wformat=]
iprintf("DNS: %HI\r\n", InterfaceDNS(ifn));
^
..\ip_util.cpp:185:54: warning: too many arguments for format [-Wformat-extra-args]
..\ip_util.cpp:186:55: warning: unknown conversion type character 'I' in format [-Wformat=]
iprintf("Gateway: %HI\r\n", InterfaceGate(ifn));
^
..\ip_util.cpp:186:55: warning: too many arguments for format [-Wformat-extra-args]
..\ip_util.cpp:213:104: warning: repeated ' ' flag in format [-Wformat=]
iprintf(" %I - Source: %s\r\n", pDNS->m_IPAddress, (pDNS->pRouter) ? "Router" : "DHCP");
^
..\ip_util.cpp:213:104: warning: 'I' flag used with '%S' gnu_printf format [-Wformat=]
..\ip_util.cpp:213:104: warning: ' ' flag used with '%S' gnu_printf format [-Wformat=]
..\ip_util.cpp:213:104: warning: format '%S' expects argument of type 'wchar_t*', but argument 2 has type 'IPADDR6*' [-Wformat=]