]> granicus.if.org Git - clang/commitdiff
Drop unnecessary #include.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 22:25:16 +0000 (22:25 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 22:25:16 +0000 (22:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89154 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/stack-addr-ps.c
test/FixIt/fixit.c

index 6577f7f37154076e1ecb6052cccfe7ed121bb13f..f26e2f0c63529b0661a5960cf76df033390d35a7 100644 (file)
@@ -1,8 +1,6 @@
 // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
 // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
 
-#include <stdlib.h>
-
 int* f1() {
   int x = 0;
   return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}
index 1f085e4f0edd3e92b98d29fefd3d6eee03a82720..4a32682be0522eddc6cf2ae952d9e399739888f8 100644 (file)
@@ -6,7 +6,9 @@
    provided as part of warning or extension diagnostics. All of the
    warnings will be fixed by -fixit, and the resulting file should
    compile cleanly with -Werror -pedantic. */
-#include <string.h> // FIXME: FIX-IT hint should add this for us!
+
+// FIXME: FIX-IT should add #include <string.h>?
+int strcmp(const char *s1, const char *s2);
 
 void f0(void) { };