Skip to content

Commit

Permalink
Replace incorrect -Wfatal-error with -Wfatal-errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhu committed Feb 27, 2017
1 parent 830c725 commit 5282660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IndexerJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ String IndexerJob::encode() const
int idx = copy.arguments.indexOf("-Werror");
if (idx != -1)
copy.arguments.removeAt(idx);
idx = copy.arguments.indexOf("-Wfatal-error");
idx = copy.arguments.indexOf("-Wfatal-errors");
if (idx != -1)
copy.arguments.removeAt(idx);
}
Expand Down
2 changes: 1 addition & 1 deletion src/rdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ int main(int argc, char** argv)
{ CompletionLogs, "completion-logs", 0, CommandLineParser::NoValue, "Log more info about completions." },
{ MaxIncludeCompletionDepth, "max-include-completion-depth", 0, CommandLineParser::Required, "Max recursion depth for header completion (default " STR(DEFAULT_MAX_INCLUDE_COMPLETION_DEPTH) ")." },
{ AllowWpedantic, "allow-Wpedantic", 'P', CommandLineParser::NoValue, "Don't strip out -Wpedantic. This can cause problems in certain projects." },
{ AllowWErrorAndWFatalErrors, "allow-Werror", 0, CommandLineParser::NoValue, "Don't strip out -Werror and -Wfatal-error. By default these are stripped out. " },
{ AllowWErrorAndWFatalErrors, "allow-Werror", 0, CommandLineParser::NoValue, "Don't strip out -Werror and -Wfatal-errors. By default these are stripped out. " },
{ EnableCompilerManager, "enable-compiler-manager", 'R', CommandLineParser::NoValue, "Query compilers for their actual include paths instead of letting clang use its own." },
{ EnableNDEBUG, "enable-NDEBUG", 'g', CommandLineParser::NoValue, "Don't remove -DNDEBUG from compile lines." },
{ Progress, "progress", 'p', CommandLineParser::NoValue, "Report compilation progress in diagnostics output." },
Expand Down

0 comments on commit 5282660

Please sign in to comment.