← Commit list

2f7738e47

Denys Vlasenko
Denys Vlasenko
2018-06-27
SUCCESS Duration: 148s

Subject

nslookup: placate "warning: unused variable i"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/nslookup.c+1 -1
@@ -712,11 +712,11 @@ static void add_query(int type, const char *dname)
static char *make_ptr(const char *addrstr)
{
unsigned char addr[16];
- int i;
#if ENABLE_FEATURE_IPV6
if (inet_pton(AF_INET6, addrstr, addr)) {
if (memcmp(addr, v4_mapped, 12) != 0) {
+ int i;
char resbuf[80];
char *ptr = resbuf;
for (i = 0; i < 16; i++) {