aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-07-30 17:11:32 +0000
committerHans Wennborg <hans@hanshq.net>2012-07-30 17:11:32 +0000
commitcec9ce49dcf4b4b768043f96c8ef8c1d4cdbb6b9 (patch)
tree9d721b14c3dc15581ba2acee713216b5f103561c /lib/Sema/SemaChecking.cpp
parent3ccc173d6f1f9e43566c258289b7581d8aa523ad (diff)
Make -Wformat check the argument type for %n.
This makes Clang check that the corresponding argument for "%n" in a format string is a pointer to int. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index 73f9b01594..200b9439a6 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -2568,8 +2568,6 @@ CheckPrintfHandler::HandlePrintfSpecifier(const analyze_printf::PrintfSpecifier
getLocationOfByte(CS.getStart()),
/*IsStringLocation*/true,
getSpecifierRange(startSpecifier, specifierLen));
- // Continue checking the other format specifiers.
- return true;
}
// The remaining checks depend on the data arguments.