]> git.proxmox.com Git - libgit2.git/commitdiff
Remove extra semicolon outside of a function
authorStefan Widgren <stefan.widgren@gmail.com>
Sun, 15 Feb 2015 20:07:05 +0000 (21:07 +0100)
committerStefan Widgren <stefan.widgren@gmail.com>
Sun, 15 Feb 2015 20:07:05 +0000 (21:07 +0100)
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.

22 files changed:
src/attr.c
src/attrcache.c
src/checkout.c
src/commit.c
src/config_file.c
src/diff_driver.c
src/fileops.c
src/mwindow.c
src/odb_mempack.c
src/offmap.h
src/oidmap.h
src/pack.h
src/refdb_fs.c
src/refs.c
src/revwalk.h
src/sortedcache.c
src/strmap.h
src/submodule.c
src/transaction.c
src/tree.c
tests/core/oidmap.c
tests/core/strmap.c

index 2e1ef7c2a67a93ac56457a90f17c3c2354d0613f..44593da81327c5c4457aca0ab2e7ec5bb43f53ea 100644 (file)
@@ -7,7 +7,7 @@
 #include "git2/oid.h"
 #include <ctype.h>
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 const char *git_attr__true  = "[internal]__TRUE__";
 const char *git_attr__false = "[internal]__FALSE__";
index 9a9b9d09dd9d2da908cb9e0abb8ad90e3e2cbef7..018fa48745c8a75faac051242032af96ce4ece77 100644 (file)
@@ -5,7 +5,7 @@
 #include "sysdir.h"
 #include "ignore.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 GIT_INLINE(int) attr_cache_lock(git_attr_cache *cache)
 {
index 395384030e455f2ff92293ee552b0c5b4596dcbe..880af3dff2ef4515c88fcfaafc2f83a3d0cc0a44 100644 (file)
@@ -32,7 +32,7 @@
 #include "pool.h"
 #include "strmap.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 /* See docs/checkout-internals.md for more information */
 
index 78c4b9de307fd997d2201438f89e630f573de777..beb2c64c36afe6a1787428b6c9d43a132925cd7d 100644 (file)
@@ -400,7 +400,7 @@ GIT_COMMIT_GETTER(const char *, raw_header, commit->raw_header)
 GIT_COMMIT_GETTER(git_time_t, time, commit->committer->when.time)
 GIT_COMMIT_GETTER(int, time_offset, commit->committer->when.offset)
 GIT_COMMIT_GETTER(unsigned int, parentcount, (unsigned int)git_array_size(commit->parent_ids))
-GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id);
+GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id)
 
 const char *git_commit_message(const git_commit *commit)
 {
index b0ffd61167dcc97875965190556e31b897a64230..168dd548309ae2ca28ac427775c002ca01c479e2 100644 (file)
@@ -21,7 +21,7 @@
 #include <sys/types.h>
 #include <regex.h>
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 typedef struct cvar_t {
        struct cvar_t *next;
index e4d9a06995cba97e2881119dbc0f47de2ff5d380..7313ab573ddd9fbd6cf6271a85f07949d684ec9a 100644 (file)
@@ -17,7 +17,7 @@
 #include "config.h"
 #include "repository.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 typedef enum {
        DIFF_DRIVER_AUTO = 0,
index 9509b27bbb2468c286f11d5620eea5e8781b9a36..ec536bf2922e39319936bed370c3977fb91391f1 100644 (file)
@@ -13,7 +13,7 @@
 #include "win32/findfile.h"
 #endif
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 int git_futils_mkpath2file(const char *file_path, const mode_t mode)
 {
index 0444cd98c4d3c6d62bdf44929cf438bdb97b42d3..55c8d894b52e7019ef97d514980e827eaa7fb563 100644 (file)
@@ -14,7 +14,7 @@
 #include "strmap.h"
 #include "pack.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 #define DEFAULT_WINDOW_SIZE \
        (sizeof(void*) >= 8 \
index 32bc844421125b3aa0eaf12d401ffceb56dc21e4..34355270f6210680cb9c5e649d72aebe16e2dbb6 100644 (file)
@@ -18,7 +18,7 @@
 #include "git2/types.h"
 #include "git2/pack.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 struct memobject {
        git_oid oid;
index 9471e7b91d38535c7d6b1c21565f54d42f3288bf..0d0e51272c4a43cfa3cc1ada79feaafca6c92060 100644 (file)
 #define kfree git__free
 #include "khash.h"
 
-__KHASH_TYPE(off, git_off_t, void *);
+__KHASH_TYPE(off, git_off_t, void *)
 typedef khash_t(off) git_offmap;
 
 #define GIT__USE_OFFMAP \
-       __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal);
+       __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
 
 #define git_offmap_alloc()  kh_init(off)
 #define git_offmap_free(h)  kh_destroy(off, h), h = NULL
index 5e3b44bfbf4b84eab8e2a8368ffc31399f6a9c2d..d2c451e7fe8eee0c2199a21fd37ce742ce65d277 100644 (file)
@@ -17,7 +17,7 @@
 #define kfree git__free
 #include "khash.h"
 
-__KHASH_TYPE(oid, const git_oid *, void *);
+__KHASH_TYPE(oid, const git_oid *, void *)
 typedef khash_t(oid) git_oidmap;
 
 GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid)
index 34d37d907fc46ff05c56f710f80b3e2b741b59fa..3cebd10aca09e45bba6da874714772cf2a62265d 100644 (file)
@@ -72,8 +72,8 @@ typedef git_array_t(struct pack_chain_elem) git_dependency_chain;
 
 #include "offmap.h"
 
-GIT__USE_OFFMAP;
-GIT__USE_OIDMAP;
+GIT__USE_OFFMAP
+GIT__USE_OIDMAP
 
 #define GIT_PACK_CACHE_MEMORY_LIMIT 16 * 1024 * 1024
 #define GIT_PACK_CACHE_SIZE_LIMIT 1024 * 1024 /* don't bother caching anything over 1MB */
index 5cd2112fc0bcf24a5c653e53cdd59afab25147f0..77cb1a8ce1ce8e131a879f728217fa1b4d3f8446 100644 (file)
@@ -26,7 +26,7 @@
 #include <git2/sys/refs.h>
 #include <git2/sys/reflog.h>
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 #define DEFAULT_NESTING_LEVEL  5
 #define MAX_NESTING_LEVEL              10
index 2e88c26c3e1eea91cc8499a757735ed85ccc7ce3..e3157529b3c2a1f89bbc4a4ba6cb9c0dc91f03a4 100644 (file)
@@ -24,7 +24,7 @@
 #include <git2/signature.h>
 #include <git2/commit.h>
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 #define DEFAULT_NESTING_LEVEL  5
 #define MAX_NESTING_LEVEL              10
index 72ddedc75dadff4a273713074acce3a7427e4a4d..1148a2ac97bc5840317e32ec8a59ae429418b0f0 100644 (file)
@@ -14,7 +14,7 @@
 #include "pool.h"
 #include "vector.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 struct git_revwalk {
        git_repository *repo;
index 1195ea33930bbdd7942f30f5981f40b6c569fa53..1151757243b93b4ca1fea1c2a222bf2094b05b2e 100644 (file)
@@ -1,6 +1,6 @@
 #include "sortedcache.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 int git_sortedcache_new(
        git_sortedcache **out,
index dfbe5639f6f4f32a5ae04b9de0808b3f70ed3d5a..5209847447efa6054bb53bb1f8bc707fff9fffff 100644 (file)
@@ -16,7 +16,7 @@
 #define kfree git__free
 #include "khash.h"
 
-__KHASH_TYPE(str, const char *, void *);
+__KHASH_TYPE(str, const char *, void *)
 typedef khash_t(str) git_strmap;
 typedef khiter_t git_strmap_iter;
 
index 03714b43ba04990fbcf100e01392c77c2abce01e..80f1b3789c38f8a1fd2efc57fe58e5a25fca7928 100644 (file)
@@ -85,7 +85,7 @@ static kh_inline int str_equal_no_trailing_slash(const char *a, const char *b)
 
 __KHASH_IMPL(
        str, static kh_inline, const char *, void *, 1,
-       str_hash_no_trailing_slash, str_equal_no_trailing_slash);
+       str_hash_no_trailing_slash, str_equal_no_trailing_slash)
 
 static int submodule_cache_init(git_repository *repo, int refresh);
 static void submodule_cache_free(git_submodule_cache *cache);
index 1a4fffb36e49c7f2ec710b76e9ba1fcff66b7f0e..7b45b8bf293eb4bbbd5df42c3bf07c3b51b4413b 100644 (file)
@@ -17,7 +17,7 @@
 #include "git2/sys/refs.h"
 #include "git2/sys/refdb_backend.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 typedef struct {
        const char *name;
index 9fd4e0a07290dfbefa2ee8fadfc0f92ae606ebb7..47ed20dbbb0be990e8a5c7626f3050f7090c5179 100644 (file)
@@ -17,7 +17,7 @@
 #define DEFAULT_TREE_SIZE 16
 #define MAX_FILEMODE_BYTES 6
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 static bool valid_filemode(const int filemode)
 {
index ec4b5e7756455cd6a56e66abf0a07d9465cce4d8..556a6ca4ac5f8289c36cb98c83f805dd10b894a3 100644 (file)
@@ -1,7 +1,7 @@
 #include "clar_libgit2.h"
 #include "oidmap.h"
 
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
 
 typedef struct {
        git_oid oid;
index a120f1feb359b10c048561cafd688c0e07bfe169..3b4276aea7c6505d9e4f1d0dcab9e3df69a43ad7 100644 (file)
@@ -1,7 +1,7 @@
 #include "clar_libgit2.h"
 #include "strmap.h"
 
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
 
 git_strmap *g_table;