Skip to content

Commit

Permalink
Suppress warnings, NFC
Browse files Browse the repository at this point in the history
Swift SVN r32662
  • Loading branch information
nkcsgexi committed Oct 13, 2015
1 parent 7cc59e0 commit 1138a9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/Basic/StringExtras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,6 @@ static bool omitNeedlessWordsMatchingFirstArgumentLabel(

/// Determine whether the given word indicates a boolean result.
static bool nameIndicatesBooleanResult(StringRef name) {
bool isFirstWord = true;

for (auto word: camel_case::getWords(name)) {
// Auxiliary verbs indicate Boolean results.
if (getPartOfSpeech(word) == PartOfSpeech::AuxiliaryVerb)
Expand Down
2 changes: 1 addition & 1 deletion lib/Sema/ITCDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ bool IterativeTypeChecker::isResolveTypeDeclSatisfied(TypeDecl *typeDecl) {
}

// Module types are always fully resolved.
if (auto module = dyn_cast<ModuleDecl>(typeDecl))
if (typeDecl->getKind() == DeclKind::Module)
return true;

// Nominal types.
Expand Down

0 comments on commit 1138a9c

Please sign in to comment.