aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/delivery.c3
-rw-r--r--src/ini.c2
-rw-r--r--src/junitxml.c6
3 files changed, 5 insertions, 6 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 278647c..014f2b5 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1476,7 +1476,7 @@ void delivery_defer_packages(struct Delivery *ctx, int type) {
struct StrList *filtered = NULL;
filtered = strlist_init();
- for (size_t i = 0, z = 0; i < strlist_count(dataptr); i++) {
+ for (size_t i = 0; i < strlist_count(dataptr); i++) {
int ignore_pkg = 0;
name = strlist_item(dataptr, i);
@@ -1494,7 +1494,6 @@ void delivery_defer_packages(struct Delivery *ctx, int type) {
if (strstr(name, ctx->tests[x].name)) {
version = ctx->tests[x].version;
ignore_pkg = 1;
- z++;
break;
}
}
diff --git a/src/ini.c b/src/ini.c
index d0757e6..6ce54ac 100644
--- a/src/ini.c
+++ b/src/ini.c
@@ -153,7 +153,7 @@ int ini_getval(struct INIFILE *ini, char *section_name, char *key, int type, uni
case INIVAL_TYPE_STR_ARRAY:
strcpy(tbufp, data->value);
*data->value = '\0';
- for (size_t i = 0; (token = strsep(&tbufp, "\n")) != NULL; i++) {
+ while ((token = strsep(&tbufp, "\n")) != NULL) {
lstrip(token);
strcat(data->value, token);
strcat(data->value, "\n");
diff --git a/src/junitxml.c b/src/junitxml.c
index c1bf1be..9c7e5b4 100644
--- a/src/junitxml.c
+++ b/src/junitxml.c
@@ -146,16 +146,16 @@ static struct StrList *attributes_to_strlist(xmlTextReaderPtr reader) {
static int read_xml_data(xmlTextReaderPtr reader, struct JUNIT_Testsuite **testsuite) {
const xmlChar *name;
- const xmlChar *value;
+ //const xmlChar *value;
name = xmlTextReaderConstName(reader);
if (!name) {
// name could not be converted to string
name = BAD_CAST "--";
}
- value = xmlTextReaderConstValue(reader);
+ //value = xmlTextReaderConstValue(reader);
const char *node_name = (char *) name;
- const char *node_value = (char *) value;
+ //const char *node_value = (char *) value;
struct StrList *attrs = attributes_to_strlist(reader);
if (attrs && strlist_count(attrs)) {