HomeFreeBSD

devel/git-cinnabar: unbreak after r516646

Description

devel/git-cinnabar: unbreak after r516646

./helper/cinnabar-helper.c:1609:31: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'const struct hashmap_entry *' [-Wincompatible-pointer-types]

old2new = hashmap_get(cache, &k, NULL);
                             ^~

./hashmap.h:306:33: note: passing argument to parameter 'key' here

const struct hashmap_entry *key,
                            ^

./helper/cinnabar-helper.c:1609:10: warning: incompatible pointer types assigning to 'struct oid_map_entry *' from 'struct hashmap_entry *' [-Wincompatible-pointer-types]

old2new = hashmap_get(cache, &k, NULL);
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./helper/cinnabar-helper.c:1652:22: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'struct hashmap_entry *' [-Wincompatible-pointer-types]

hashmap_add(cache, old2new);
                   ^~~~~~~

./hashmap.h:349:61: note: passing argument to parameter 'entry' here
void hashmap_add(struct hashmap *map, struct hashmap_entry *entry);

^

./helper/cinnabar-helper.c:1670:31: warning: incompatible pointer types passing 'struct old2new_manifest_tree *' to parameter of type 'const struct hashmap_entry *' [-Wincompatible-pointer-types]

old2new = hashmap_get(cache, &k, NULL);
                             ^~

./hashmap.h:306:33: note: passing argument to parameter 'key' here

const struct hashmap_entry *key,
                            ^

./helper/cinnabar-helper.c:1670:10: warning: incompatible pointer types assigning to 'struct old2new_manifest_tree *' from 'struct hashmap_entry *' [-Wincompatible-pointer-types]

old2new = hashmap_get(cache, &k, NULL);
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./helper/cinnabar-helper.c:1715:22: warning: incompatible pointer types passing 'struct old2new_manifest_tree *' to parameter of type 'struct hashmap_entry *' [-Wincompatible-pointer-types]

hashmap_add(cache, old2new);
                   ^~~~~~~

./hashmap.h:349:61: note: passing argument to parameter 'entry' here
void hashmap_add(struct hashmap *map, struct hashmap_entry *entry);

^

./helper/cinnabar-helper.c:1752:45: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'const struct hashmap_entry *' [-Wincompatible-pointer-types]

entry = hashmap_get(&track->commit_cache, &k, NULL);
                                          ^~

./hashmap.h:306:33: note: passing argument to parameter 'key' here

const struct hashmap_entry *key,
                            ^

./helper/cinnabar-helper.c:1752:9: warning: incompatible pointer types assigning to 'struct oid_map_entry *' from 'struct hashmap_entry *' [-Wincompatible-pointer-types]

entry = hashmap_get(&track->commit_cache, &k, NULL);
      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./helper/cinnabar-helper.c:1788:45: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'const struct hashmap_entry *' [-Wincompatible-pointer-types]

entry = hashmap_get(&track->commit_cache, &k, NULL);
                                          ^~

./hashmap.h:306:33: note: passing argument to parameter 'key' here

const struct hashmap_entry *key,
                            ^

./helper/cinnabar-helper.c:1788:9: warning: incompatible pointer types assigning to 'struct oid_map_entry *' from 'struct hashmap_entry *' [-Wincompatible-pointer-types]

entry = hashmap_get(&track->commit_cache, &k, NULL);
      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./helper/cinnabar-helper.c:1800:36: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'struct hashmap_entry *' [-Wincompatible-pointer-types]

hashmap_add(&track->commit_cache, entry);
                                  ^~~~~

./hashmap.h:349:61: note: passing argument to parameter 'entry' here
void hashmap_add(struct hashmap *map, struct hashmap_entry *entry);

^

./helper/cinnabar-helper.c:1904:36: warning: incompatible pointer types passing 'int (const void *, const void *, const void *, const void *)' to parameter of type 'hashmap_cmp_fn' (aka 'int (*)(const void *, const struct hashmap_entry *, const struct hashmap_entry *, const void *)') [-Wincompatible-pointer-types]

hashmap_init(&track.tree_cache, oid_map_entry_cmp, NULL, 0);
                                ^~~~~~~~~~~~~~~~~

./hashmap.h:231:20: note: passing argument to parameter 'equals_function' here

hashmap_cmp_fn equals_function,
               ^

./helper/cinnabar-helper.c:1906:36: warning: incompatible pointer types passing 'int (const void *, const void *, const void *, const void *)' to parameter of type 'hashmap_cmp_fn' (aka 'int (*)(const void *, const struct hashmap_entry *, const struct hashmap_entry *, const void *)') [-Wincompatible-pointer-types]

hashmap_init(&track.tree_cache, old2new_manifest_tree_cmp, NULL, 0);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~

./hashmap.h:231:20: note: passing argument to parameter 'equals_function' here

hashmap_cmp_fn equals_function,
               ^

./helper/cinnabar-helper.c:1908:37: warning: incompatible pointer types passing 'int (const void *, const void *, const void *, const void *)' to parameter of type 'hashmap_cmp_fn' (aka 'int (*)(const void *, const struct hashmap_entry *, const struct hashmap_entry *, const void *)') [-Wincompatible-pointer-types]

hashmap_init(&track.commit_cache, oid_map_entry_cmp, NULL, 0);
                                  ^~~~~~~~~~~~~~~~~

./hashmap.h:231:20: note: passing argument to parameter 'equals_function' here

hashmap_cmp_fn equals_function,
               ^

./helper/cinnabar-helper.c:1935:37: error: too many arguments provided to function-like macro invocation

hashmap_free(&track.commit_cache, 1);
                                  ^

./hashmap.h:241:9: note: macro 'hashmap_free' defined here

#define hashmap_free(map) hashmap_free_(map, -1)
        ^

./helper/cinnabar-helper.c:1935:3: error: use of undeclared identifier 'hashmap_free'; did you mean 'hashmap_free_'?

hashmap_free(&track.commit_cache, 1);
^~~~~~~~~~~~
hashmap_free_

./hashmap.h:236:6: note: 'hashmap_free_' declared here
void hashmap_free_(struct hashmap *map, ssize_t offset);

^

./helper/cinnabar-helper.c:1936:35: error: too many arguments provided to function-like macro invocation

hashmap_free(&track.tree_cache, 1);
                                ^

./hashmap.h:241:9: note: macro 'hashmap_free' defined here

#define hashmap_free(map) hashmap_free_(map, -1)
        ^

./helper/cinnabar-helper.c:1936:3: error: use of undeclared identifier 'hashmap_free'; did you mean 'hashmap_free_'?

hashmap_free(&track.tree_cache, 1);
^~~~~~~~~~~~
hashmap_free_

./hashmap.h:236:6: note: 'hashmap_free_' declared here
void hashmap_free_(struct hashmap *map, ssize_t offset);

^

./helper/cinnabar-helper.c:1935:3: warning: expression result unused [-Wunused-value]

hashmap_free(&track.commit_cache, 1);
^~~~~~~~~~~~

./helper/cinnabar-helper.c:1936:3: warning: expression result unused [-Wunused-value]

hashmap_free(&track.tree_cache, 1);
^~~~~~~~~~~~

./helper/cinnabar-helper.c:1955:35: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'const struct hashmap_entry *' [-Wincompatible-pointer-types]

cache_entry = hashmap_get(cache, &k, NULL);
                                 ^~

./hashmap.h:306:33: note: passing argument to parameter 'key' here

const struct hashmap_entry *key,
                            ^

./helper/cinnabar-helper.c:1955:14: warning: incompatible pointer types assigning to 'struct oid_map_entry *' from 'struct hashmap_entry *' [-Wincompatible-pointer-types]

cache_entry = hashmap_get(cache, &k, NULL);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./helper/cinnabar-helper.c:2020:23: warning: incompatible pointer types passing 'struct oid_map_entry *' to parameter of type 'struct hashmap_entry *' [-Wincompatible-pointer-types]

hashmap_add(cache, cache_entry);
                   ^~~~~~~~~~~

./hashmap.h:349:61: note: passing argument to parameter 'entry' here
void hashmap_add(struct hashmap *map, struct hashmap_entry *entry);

^

./helper/cinnabar-helper.c:2280:32: error: too many arguments provided to function-like macro invocation

hashmap_free(&git_tree_cache, 1);
                              ^

./hashmap.h:241:9: note: macro 'hashmap_free' defined here

#define hashmap_free(map) hashmap_free_(map, -1)
        ^

./helper/cinnabar-helper.c:2280:2: error: use of undeclared identifier 'hashmap_free'; did you mean 'hashmap_free_'?

hashmap_free(&git_tree_cache, 1);
^~~~~~~~~~~~
hashmap_free_

./hashmap.h:236:6: note: 'hashmap_free_' declared here
void hashmap_free_(struct hashmap *map, ssize_t offset);

^

./helper/cinnabar-helper.c:2281:32: warning: incompatible pointer types passing 'int (const void *, const void *, const void *, const void *)' to parameter of type 'hashmap_cmp_fn' (aka 'int (*)(const void *, const struct hashmap_entry *, const struct hashmap_entry *, const void *)') [-Wincompatible-pointer-types]

hashmap_init(&git_tree_cache, oid_map_entry_cmp, NULL, 0);
                              ^~~~~~~~~~~~~~~~~

./hashmap.h:231:20: note: passing argument to parameter 'equals_function' here

hashmap_cmp_fn equals_function,
               ^

./helper/cinnabar-helper.c:2280:2: warning: expression result unused [-Wunused-value]

hashmap_free(&git_tree_cache, 1);
^~~~~~~~~~~~

./helper/cinnabar-helper.c:2397:34: warning: incompatible pointer types passing 'int (const void *, const void *, const void *, const void *)' to parameter of type 'hashmap_cmp_fn' (aka 'int (*)(const void *, const struct hashmap_entry *, const struct hashmap_entry *, const void *)') [-Wincompatible-pointer-types]

hashmap_init(&git_tree_cache, oid_map_entry_cmp, NULL, 0);
                              ^~~~~~~~~~~~~~~~~

./hashmap.h:231:20: note: passing argument to parameter 'equals_function' here

hashmap_cmp_fn equals_function,
               ^

./helper/cinnabar-helper.c:2453:32: error: too many arguments provided to function-like macro invocation

hashmap_free(&git_tree_cache, 1);
                              ^

./hashmap.h:241:9: note: macro 'hashmap_free' defined here

#define hashmap_free(map) hashmap_free_(map, -1)
        ^

./helper/cinnabar-helper.c:2453:2: error: use of undeclared identifier 'hashmap_free'; did you mean 'hashmap_free_'?

hashmap_free(&git_tree_cache, 1);
^~~~~~~~~~~~
hashmap_free_

./hashmap.h:236:6: note: 'hashmap_free_' declared here
void hashmap_free_(struct hashmap *map, ssize_t offset);

^

./helper/cinnabar-helper.c:2453:2: warning: expression result unused [-Wunused-value]

hashmap_free(&git_tree_cache, 1);
^~~~~~~~~~~~

Reported by: pkg-fallout

Details

Provenance
jbeichAuthored on
Parents
rP516781: Update to 8.4.2
Branches
Unknown
Tags
Unknown