diff options
author | Vicent Martà <tanoku@gmail.com> | 2011-09-18 20:07:59 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2011-09-18 20:07:59 -0700 |
commit | 71a4c1f16ffc71bced673c5883d5ea621cc8d24f (patch) | |
tree | c8b035c6d1fc55f13f8c2213c9be226137fe077a /tests/t04-commit.c | |
parent | a8076074702d336b5d9f0103c8420c17bf7a6b4c (diff) | |
parent | d568d5856bcc4f283ae1dda0e27d680ee22fb067 (diff) | |
download | libgit2-71a4c1f16ffc71bced673c5883d5ea621cc8d24f.tar.gz |
Merge pull request #384 from kiryl/warnings
Add more -W flags to CFLAGS
Diffstat (limited to 'tests/t04-commit.c')
-rw-r--r-- | tests/t04-commit.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/t04-commit.c b/tests/t04-commit.c index a8617ed6a..88c7efd81 100644 --- a/tests/t04-commit.c +++ b/tests/t04-commit.c @@ -498,9 +498,6 @@ BEGIN_TEST(signature4, "creating a zero character signature") END_TEST -/* External declaration for testing the buffer parsing method */ -int commit_parse_buffer(git_commit *commit, void *data, size_t len); - BEGIN_TEST(parse2, "parse a whole commit buffer") const int broken_commit_count = sizeof(test_commits_broken) / sizeof(*test_commits_broken); const int working_commit_count = sizeof(test_commits_working) / sizeof(*test_commits_working); @@ -516,7 +513,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer") memset(commit, 0x0, sizeof(git_commit)); commit->object.repo = repo; - must_fail(commit_parse_buffer( + must_fail(git_commit__parse_buffer( commit, test_commits_broken[i], strlen(test_commits_broken[i])) @@ -532,7 +529,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer") memset(commit, 0x0, sizeof(git_commit)); commit->object.repo = repo; - must_pass(commit_parse_buffer( + must_pass(git_commit__parse_buffer( commit, test_commits_working[i], strlen(test_commits_working[i])) @@ -544,7 +541,7 @@ BEGIN_TEST(parse2, "parse a whole commit buffer") memset(commit, 0x0, sizeof(git_commit)); commit->object.repo = repo; - must_pass(commit_parse_buffer( + must_pass(git_commit__parse_buffer( commit, test_commits_working[i], strlen(test_commits_working[i])) |