r205721 - [analyzer] Fix mistake in example for potential checker "posix.Errno".
Jordan Rose
jordan_rose at apple.com
Mon Apr 7 09:36:15 PDT 2014
Author: jrose
Date: Mon Apr 7 11:36:15 2014
New Revision: 205721
URL: http://llvm.org/viewvc/llvm-project?rev=205721&view=rev
Log:
[analyzer] Fix mistake in example for potential checker "posix.Errno".
Found by Richard Osbourne!
Modified:
cfe/trunk/www/analyzer/potential_checkers.html
Modified: cfe/trunk/www/analyzer/potential_checkers.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/potential_checkers.html?rev=205721&r1=205720&r2=205721&view=diff
==============================================================================
--- cfe/trunk/www/analyzer/potential_checkers.html (original)
+++ cfe/trunk/www/analyzer/potential_checkers.html Mon Apr 7 11:36:15 2014
@@ -335,7 +335,7 @@ int readWrapper(int fd, int *count) {
void use(int fd) {
int count;
- if (!readWrapper(fd))
+ if (!readWrapper(fd, &count))
print("%d", count); // should not warn
}
</pre></td><td class="aligned"><a href="http://llvm.org/bugs/show_bug.cgi?id=18701">PR18701</a></td></tr>
More information about the cfe-commits
mailing list