diff --git a/parsers/ada.c b/parsers/ada.c index bbd6792af8..aa018a17f3 100644 --- a/parsers/ada.c +++ b/parsers/ada.c @@ -1879,7 +1879,7 @@ static adaTokenInfo *adaParse(adaParseMode mode, adaTokenInfo *parent) * found, if we didn't just fall through */ if((pos + i) < lineLen) { - token = newAdaToken(&line[pos], i, ADA_KIND_LABEL, false, parent); + newAdaToken(&line[pos], i, ADA_KIND_LABEL, false, parent); skipPast(">>"); token = NULL; } diff --git a/parsers/asm.c b/parsers/asm.c index 7aa6009864..11d405018d 100644 --- a/parsers/asm.c +++ b/parsers/asm.c @@ -369,7 +369,7 @@ static void findAsmTags (void) { while (isspace ((int) *cp)) ++cp; - cp = readSymbol (cp, name); + readSymbol (cp, name); nameFollows = true; } makeAsmTag (name, operator, labelCandidate, nameFollows, directive, diff --git a/parsers/itcl.c b/parsers/itcl.c index 9483e5a3b8..2b64342dd3 100644 --- a/parsers/itcl.c +++ b/parsers/itcl.c @@ -237,7 +237,6 @@ static int parseClass (tclSubparser *s CTAGS_ATTR_UNUSED, int parentIndex, } else if (token->type == '}') { - protection = KEYWORD_NONE; break; } else diff --git a/parsers/nsis.c b/parsers/nsis.c index baace02dbc..6e40ca0745 100644 --- a/parsers/nsis.c +++ b/parsers/nsis.c @@ -287,7 +287,7 @@ static void findNsisTags (void) else if (lineStartingWith (cp, "sectiongroup", false)) { cp += 12; - cp = parseSection (cp, name, K_SECTION_GROUP, CORK_NIL, §ionGroupIndex); + parseSection (cp, name, K_SECTION_GROUP, CORK_NIL, §ionGroupIndex); } else if (lineStartingWith (cp, "sectiongroupend", true)) { @@ -298,19 +298,19 @@ static void findNsisTags (void) else if (lineStartingWith (cp, "section", false)) { cp += 7; - cp = parseSection (cp, name, K_SECTION, sectionGroupIndex, NULL); + parseSection (cp, name, K_SECTION, sectionGroupIndex, NULL); } /* LangString */ else if (lineStartingWith (cp, "langstring", false)) { cp += 10; - cp = parseLangString (cp, name); + parseLangString (cp, name); } /* LicenseLangString */ else if (lineStartingWith (cp, "licenselangstring", false)) { cp += 17; - cp = parseLangString (cp, name); + parseLangString (cp, name); } /* definitions */ else if (lineStartingWith (cp, "!define", false)) diff --git a/parsers/plist.c b/parsers/plist.c index e051618752..4c1b6fe14f 100644 --- a/parsers/plist.c +++ b/parsers/plist.c @@ -107,7 +107,6 @@ static void plistFindTagsUnderKey (xmlNode *node, int c; queue = stringListNew (); - current = node; for (current = node; current; current = current->parent) { if (isCompoundElement (current) diff --git a/parsers/vim.c b/parsers/vim.c index 47418fdb80..789743dac5 100644 --- a/parsers/vim.c +++ b/parsers/vim.c @@ -623,7 +623,6 @@ static void parseVimBallFile (const unsigned char *line) { vString *fname = vStringNew (); const unsigned char *cp; - int file_line_count; int i; /* @@ -663,17 +662,13 @@ static void parseVimBallFile (const unsigned char *line) vStringClear (fname); } - file_line_count = 0; /* Next line should be the line count of the file */ line = readVimLine (); if (line == NULL) { goto cleanUp; } - else - { - file_line_count = atoi ((const char *) line); - } + int file_line_count = atoi ((const char *) line); /* Read all lines of the file */ for (i = 0; i < file_line_count; i++)