[cfe-commits] missing includes for several tests

Jonathan Gray jsg at goblin.cx
Fri Jul 10 13:00:23 PDT 2009


These tests fail due to missing types without the following
includes, on OpenBSD and likely other systems.

The dragonfly/freebsd tests also fail unless something
like what is described in
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090629/018744.html
is done.

Index: Analysis/casts.c
===================================================================
--- Analysis/casts.c	(revision 75262)
+++ Analysis/casts.c	(working copy)
@@ -3,6 +3,7 @@
 // Test if the 'storage' region gets properly initialized after it is cast to
 // 'struct sockaddr *'. 
 
+#include <sys/types.h>
 #include <sys/socket.h>
 void f(int sock) {
   struct sockaddr_storage storage;
Index: Sema/format-attr-pr4470.c
===================================================================
--- Sema/format-attr-pr4470.c	(revision 75262)
+++ Sema/format-attr-pr4470.c	(working copy)
@@ -1,6 +1,7 @@
 // RUN: clang-cc -fsyntax-only -verify -Wformat=2 %s
 
 #include <stdio.h>
+#include <stdarg.h>
 
 const char *foo(const char *format) __attribute__((format_arg(1)));
 



More information about the cfe-commits mailing list