misc: fix compilation with new gcc (unused variables warnings)
[libcmdline.git] / src / genconf / confnode_intconfig.c
index 7d759cc..d5f732e 100644 (file)
@@ -112,7 +112,8 @@ static int confnode_intconfig_set_user_strvalue(struct confnode *n,
                                                const char *strvalue)
 {
        char *end = NULL;
-       int val;
+       int val __attribute__((unused));
+
        /* XXX support hex and bin */
        val = strtoul(strvalue, &end, 0);
        if ((strvalue[0] == '\0') || (end == NULL) || (*end != '\0'))
@@ -140,7 +141,8 @@ static int confnode_intconfig_set_default_strvalue(struct confnode *n,
                                              const char *strvalue)
 {
        char *end = NULL;
-       int val;
+       int val __attribute__((unused));
+
        /* XXX support hex and bin */
        val = strtoul(strvalue, &end, 0);
        if ((strvalue[0] == '\0') || (end == NULL) || (*end != '\0'))