[sourcekitd] Fix some compiler warnings

* remove nullability attribute from a non-pointer argument
* const-correctness on custom buffer casts
* remove statically unreachable code
This commit is contained in:
Ben Langmuir
2018-04-19 14:20:51 -07:00
parent 1d66f0ab50
commit 0aa11cb6b2
3 changed files with 3 additions and 4 deletions

View File

@@ -865,7 +865,6 @@ static bool canonicalizeFilterName(const char *origName,
continue;
}
}
llvm_unreachable("exit is on null byte");
}
static void translateFilterRules(ArrayRef<FilterRule> rawFilterRules,