Commit 1c8b339d by Vicent Marti

Merge pull request #2139 from ethomson/va_copy_warning

Include stdarg.h for the va_copy test
parents 98b93662 4f46a98b
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "buffer.h" #include "buffer.h"
#include "posix.h" #include "posix.h"
#include "git2/buffer.h" #include "git2/buffer.h"
#include <stdarg.h>
#include <ctype.h> #include <ctype.h>
/* Used as default value for git_buf->ptr so that people can always /* Used as default value for git_buf->ptr so that people can always
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#ifndef INCLUDE_buffer_h__ #ifndef INCLUDE_buffer_h__
#define INCLUDE_buffer_h__ #define INCLUDE_buffer_h__
#include <stdarg.h>
#include "common.h" #include "common.h"
#include "git2/strarray.h" #include "git2/strarray.h"
#include "git2/buffer.h" #include "git2/buffer.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef INCLUDE_compat_h__ #ifndef INCLUDE_compat_h__
#define INCLUDE_compat_h__ #define INCLUDE_compat_h__
#include <stdarg.h>
/* /*
* See if our compiler is known to support flexible array members. * See if our compiler is known to support flexible array members.
*/ */
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#include "signature.h" #include "signature.h"
#include "message.h" #include "message.h"
#include <stdarg.h>
void git_commit__free(void *_commit) void git_commit__free(void *_commit)
{ {
git_commit *commit = _commit; git_commit *commit = _commit;
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "global.h" #include "global.h"
#include "posix.h" #include "posix.h"
#include "buffer.h" #include "buffer.h"
#include <stdarg.h>
/******************************************** /********************************************
* New error handling * New error handling
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include <stdarg.h>
#include "common.h" #include "common.h"
#include "filebuf.h" #include "filebuf.h"
#include "fileops.h" #include "fileops.h"
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include <stdarg.h>
#include "git2/object.h" #include "git2/object.h"
#include "common.h" #include "common.h"
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#else #else
#include <dirent.h> #include <dirent.h>
#endif #endif
#include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with * This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include <stdarg.h>
#include <ctype.h> #include <ctype.h>
#include "git2/object.h" #include "git2/object.h"
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
* a Linking Exception. For full terms see the included COPYING file. * a Linking Exception. For full terms see the included COPYING file.
*/ */
#include <stdarg.h>
#include <git2.h> #include <git2.h>
#include "common.h" #include "common.h"
#include "fileops.h" #include "fileops.h"
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#ifndef INCLUDE_trace_h__ #ifndef INCLUDE_trace_h__
#define INCLUDE_trace_h__ #define INCLUDE_trace_h__
#include <stdarg.h>
#include <git2/trace.h> #include <git2/trace.h>
#include "buffer.h" #include "buffer.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment