]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
duid: If no UUID support, don't warn about unused variable.
authorRoy Marples <roy@marples.name>
Tue, 16 Apr 2019 18:09:50 +0000 (18:09 +0000)
committerRoy Marples <roy@marples.name>
Tue, 16 Apr 2019 18:09:50 +0000 (18:09 +0000)
src/duid.c

index c0752b3532f6c2e5667a9d3f2821118b2aacf81e..dd08f00ea0c71345b7521821d882b89f78fc4180 100644 (file)
@@ -90,6 +90,7 @@ duid_machineuuid(char *uuid, size_t uuid_len)
        fclose(fp);
        r = len == 1 ? -1 : 0;
 #else
+       UNUSED(uuid);
        r = -1;
        errno = ENOSYS;
 #endif