]> git.proxmox.com Git - libgit2.git/commitdiff
Remove extra semicolon outside of a function
authorStefan Widgren <stefan.widgren@gmail.com>
Fri, 31 Jul 2015 14:23:11 +0000 (16:23 +0200)
committerStefan Widgren <stefan.widgren@gmail.com>
Fri, 31 Jul 2015 14:23:11 +0000 (16:23 +0200)
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.

src/describe.c
src/indexer.c
src/pack-objects.c
src/pack.c
src/revwalk.c

index 5aea927c1adbfc56af80b7616cca5583546eff02..48f04e858372e0bfb67b6c9fc3351a655e88d23e 100644 (file)
@@ -19,7 +19,7 @@
 #include "vector.h"
 #include "repository.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 /* Ported from https://github.com/git/git/blob/89dde7882f71f846ccd0359756d27bebc31108de/builtin/describe.c */
 
index 512addf48bf4626fa27516a0a1ee4b669abad5a4..9aa092556b017636055918e6ea7154aceacf5ede 100644 (file)
@@ -18,7 +18,7 @@
 #include "oidmap.h"
 #include "zstream.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 extern git_mutex git__mwindow_mutex;
 
index e287e33069a7f5969f189e2f5e6d6975b0c4c541..c4c061a3a9f0a29a9a4964090faae1f5b73754f4 100644 (file)
@@ -41,7 +41,7 @@ struct pack_write_context {
        git_transfer_progress *stats;
 };
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 #ifdef GIT_THREADS
 
index cd652672119de67d11f1f9679f6cecc5b920f5c3..45dd4d5be8e3dadccfb0e16748403a8374964b55 100644 (file)
@@ -16,8 +16,8 @@
 
 #include <zlib.h>
 
-GIT__USE_OFFMAP;
-GIT__USE_OIDMAP;
+GIT__USE_OFFMAP
+GIT__USE_OIDMAP
 
 static int packfile_open(struct git_pack_file *p);
 static git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n);
index 6acc5d034bebdb96c7e572c1c0408996aa7c21fb..dcdd97915aa24798d29a3ca3679d4511561cf7a9 100644 (file)
@@ -14,7 +14,7 @@
 #include "git2/revparse.h"
 #include "merge.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 git_commit_list_node *git_revwalk__commit_lookup(
        git_revwalk *walk, const git_oid *oid)