aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 8e3a4212e0..7d54dc0c5f 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -629,10 +629,10 @@ void Sema::CheckPrintfString(const StringLiteral *FExpr,
}
// Str - The format string. NOTE: this is NOT null-terminated!
- const char * const Str = FExpr->getStrData();
+ const char *Str = FExpr->getStrData();
// CHECK: empty format string?
- const unsigned StrLen = FExpr->getByteLength();
+ unsigned StrLen = FExpr->getByteLength();
if (StrLen == 0) {
Diag(FExpr->getLocStart(), diag::warn_printf_empty_format_string)