am 3b32f45a: am df8360e1: am 8c596b79: am d8db5112: Remove set but not used variable

* commit '3b32f45ad5d885a85b9a7e9f38cddd05e40287ad':
  Remove set but not used variable
diff --git a/dhcp.c b/dhcp.c
index 7675b5b..030d737 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -1382,7 +1382,6 @@
 configure_env(char **env, const char *prefix, const struct dhcp_message *dhcp,
     const struct if_options *ifo)
 {
-	unsigned int i;
 	const uint8_t *p;
 	int pl;
 	struct in_addr addr;
@@ -1425,7 +1424,6 @@
 			net.s_addr = get_netmask(addr.s_addr);
 			setvar(&ep, prefix, "subnet_mask", inet_ntoa(net));
 		}
-		i = inet_ntocidr(net);
 		snprintf(cidr, sizeof(cidr), "%d", inet_ntocidr(net));
 		setvar(&ep, prefix, "subnet_cidr", cidr);
 		if (get_option_addr(&brd, dhcp, DHO_BROADCAST) == -1) {
diff --git a/dhcpcd_test.cpp b/dhcpcd_test.cpp
index 1fa829f..a254d4d 100644
--- a/dhcpcd_test.cpp
+++ b/dhcpcd_test.cpp
@@ -97,9 +97,9 @@
   }
 
   struct dhcp_message dhcpmsgs[2];
-  size_t type_index;
-  size_t length_index;
-  size_t value_index;
+  volatile size_t type_index;
+  volatile size_t length_index;
+  volatile size_t value_index;
 };
 
 TEST_F(DhcpcdGetOptionTest, OptionNotPresent) {