8000 Add missing static keyword · docopt/docopt.cpp@6f5de76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f5de76

Browse files
martinhansdkjaredgrubb
authored andcommitted
Add missing static keyword
GCC complains about a missing declaration for this function when compiled with `-Werror=missing-declarations`. Adding a static keyword here fixes that.
1 parent 42ebcec commit 6f5de76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docopt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static PatternList parse_argv(Tokens tokens, std::vector<Option>& options, bool
523523
return ret;
524524
}
525525

526-
std::vector<Option> parse_defaults(std::string const& doc) {
526+
static std::vector<Option> parse_defaults(std::string const& doc) {
527527
// This pattern is a delimiter by which we split the options.
528528
// The delimiter is a new line followed by a whitespace(s) followed by one or two hyphens.
529529
static std::regex const re_delimiter{

0 commit comments

Comments
 (0)
0