X-Git-Url: http://git.droids-corp.org/?p=libcmdline.git;a=blobdiff_plain;f=src%2Fgenconf%2Fconfnode_intconfig.c;h=d5f732e3e14b17d0bef3d6d812b3676a4c0bd767;hp=7d759cc8570f8d901dd729f9c19e4ea65d9b0850;hb=42d8264dd0ef02b7764c0cce18231eafc1062257;hpb=144f9f5da375c6f81de9c2d97f4367f7e7f12bd6 diff --git a/src/genconf/confnode_intconfig.c b/src/genconf/confnode_intconfig.c index 7d759cc..d5f732e 100644 --- a/src/genconf/confnode_intconfig.c +++ b/src/genconf/confnode_intconfig.c @@ -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'))