8000 Merge pull request #6480 from libgit2/ethomson/warn · libgit2/libgit2@cefe6c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cefe6c4

Browse files
authored
Merge pull request #6480 from libgit2/ethomson/warn
Fix some warnings in main
2 parents bf2f44d + b8fff35 commit cefe6c4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/libgit2/streams/socket.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ static ssize_t socket_write(git_stream *stream, const char *data, size_t len, in
135135
git_socket_stream *st = (git_socket_stream *) stream;
136136
ssize_t written;
137137

138-
assert(flags == 0);
138+
GIT_ASSERT(flags == 0);
139+
GIT_UNUSED(flags);
139140

140141
errno = 0;
141142

tests/libgit2/repo/extensions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "sysdir.h"
44
#include <ctype.h>
55

6-
git_repository *repo;
6+
static git_repository *repo;
77

88
void test_repo_extensions__initialize(void)
99
{

tests/libgit2/repo/objectformat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include "repository.h"
55
#include <ctype.h>
66

7-
git_repository *repo;
8-
git_config *config;
7+
static git_repository *repo;
8+
static git_config *config;
99

1010
void test_repo_objectformat__initialize(void)
1111
{

0 commit comments

Comments
 (0)
0