Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a299d0a

Browse files
stewidcarlosmn
authored andcommitted
Remove extra semicolon outside of a function
Without this change, compiling with gcc and pedantic generates warning: ISO C does not allow extra ‘;’ outside of a function.
1 parent e5a7724 commit a299d0a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "vector.h"
2020
#include "repository.h"
2121

22-
GIT__USE_OIDMAP;
22+
GIT__USE_OIDMAP
2323

2424
/* Ported from https://github.com/git/git/blob/89dde7882f71f846ccd0359756d27bebc31108de/builtin/describe.c */
2525

src/indexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "oidmap.h"
1919
#include "zstream.h"
2020

21-
GIT__USE_OIDMAP;
21+
GIT__USE_OIDMAP
2222

2323
extern git_mutex git__mwindow_mutex;
2424

src/pack-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct pack_write_context {
4141
git_transfer_progress *stats;
4242
};
4343

44-
GIT__USE_OIDMAP;
44+
GIT__USE_OIDMAP
4545

4646
#ifdef GIT_THREADS
4747

src/pack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
#include <zlib.h>
1818

19-
GIT__USE_OFFMAP;
20-
GIT__USE_OIDMAP;
19+
GIT__USE_OFFMAP
20+
GIT__USE_OIDMAP
2121

2222
static int packfile_open(struct git_pack_file *p);
2323
static git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n);

src/revwalk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "git2/revparse.h"
1515
#include "merge.h"
1616

17-
GIT__USE_OIDMAP;
17+
GIT__USE_OIDMAP
1818

1919
git_commit_list_node *git_revwalk__commit_lookup(
2020
git_revwalk *walk, const git_oid *oid)

0 commit comments

Comments
 (0)