summaryrefslogtreecommitdiff
path: root/tests/test_main.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-04 17:10:17 +0100
committerAndreas Ericsson <ae@op5.se>2009-06-05 12:12:42 +0200
commitcf33ac7a3d8b2b8f6bb266518aadbf59de397608 (patch)
tree12dcefefdbc9972cf851906ca5c8e8fea46d1fcc /tests/test_main.c
parente17a3f5673e0dc4d9ade34a0a276e6c202506fdf (diff)
downloadlibgit2-cf33ac7a3d8b2b8f6bb266518aadbf59de397608.tar.gz
Makefile: Add CFLAGS to the "test_main.c" compile target
Also, add the <string.h> include to test_main.c, in order to suppress the resulting "implicit declaration of strcmp()" warning. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'tests/test_main.c')
-rw-r--r--tests/test_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_main.c b/tests/test_main.c
index 0be51ee21..43bb43402 100644
--- a/tests/test_main.c
+++ b/tests/test_main.c
@@ -24,6 +24,7 @@
*/
#include "test_lib.h"
+#include <string.h>
#undef BEGIN_TEST
#define BEGIN_TEST(name) extern void testfunc__##name(void);