Skip to content

Commit

Permalink
Merge pull request #6480 from libgit2/ethomson/warn
Browse files Browse the repository at this point in the history
Fix some warnings in main
  • Loading branch information
ethomson committed Feb 15, 2023
2 parents bf2f44d + b8fff35 commit cefe6c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/libgit2/streams/socket.c
Expand Up @@ -135,7 +135,8 @@ static ssize_t socket_write(git_stream *stream, const char *data, size_t len, in
git_socket_stream *st = (git_socket_stream *) stream;
ssize_t written;

assert(flags == 0);
GIT_ASSERT(flags == 0);
GIT_UNUSED(flags);

errno = 0;

Expand Down
2 changes: 1 addition & 1 deletion tests/libgit2/repo/extensions.c
Expand Up @@ -3,7 +3,7 @@
#include "sysdir.h"
#include <ctype.h>

git_repository *repo;
static git_repository *repo;

void test_repo_extensions__initialize(void)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/libgit2/repo/objectformat.c
Expand Up @@ -4,8 +4,8 @@
#include "repository.h"
#include <ctype.h>

git_repository *repo;
git_config *config;
static git_repository *repo;
static git_config *config;

void test_repo_objectformat__initialize(void)
{
Expand Down

0 comments on commit cefe6c4

Please sign in to comment.