Skip to content

Commit

Permalink
Fix missing initializer for field warnings
Browse files Browse the repository at this point in the history
This is basically a false-positive by GCC since static variables are
unambiguously zeroed-out per the language standard, but the workaround
is simple enough.
  • Loading branch information
codebrainz committed Dec 21, 2017
1 parent dbd0573 commit 81144dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ctags/main/xtag.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ static bool isPseudoTagsEnabled (xtagDesc *pdesc CTAGS_ATTR_UNUSED)

static xtagDesc xtagDescs [] = {
{ true, 'F', "fileScope",
"Include tags of file scope" },
"Include tags of file scope", NULL},
{ false, 'f', "inputFile",
"Include an entry for the base file name of every input file"},
"Include an entry for the base file name of every input file", NULL},
{ false, 'p', "pseudo",
"Include pseudo tags",
isPseudoTagsEnabled},
{ false, 'q', "qualified",
"Include an extra class-qualified tag entry for each tag"},
"Include an extra class-qualified tag entry for each tag", NULL},
{ false, 'r', "reference",
"Include reference tags"},
"Include reference tags", NULL},
{ false, 's', "subparser",
"Include tags generated by sub parsers"},
"Include tags generated by sub parsers", NULL},

This comment has been minimized.

Copy link
@b4n

b4n Jan 13, 2018

Member

same, might be interesting to send upstream

This comment has been minimized.

Copy link
@codebrainz

codebrainz Jan 13, 2018

Author Member

Probably, yeah, though the changes are rather pedantic.

};

extern xtagDesc* getXtagDesc (xtagType type)
Expand Down

0 comments on commit 81144dc

Please sign in to comment.