Commit 97485501 authored by Peter Wu's avatar Peter Wu Committed by Petr Machata

Fix clang warning (-Wduplicate-decl-specifier)

DICT_INIT defines its key type as constant already, no need to duplicate
that in callers of DICT_INIT.
Signed-off-by: default avatarPeter Wu <[email protected]>
parent c391cea9
......@@ -47,7 +47,7 @@ my_demangle(const char *function_name) {
if (name_cache == NULL) {
name_cache = malloc(sizeof(*name_cache));
if (name_cache != NULL)
DICT_INIT(name_cache, const char *, const char *,
DICT_INIT(name_cache, char *, const char *,
dict_hash_string, dict_eq_string, NULL);
}
......
......@@ -568,7 +568,7 @@ again:
options.summary = 0;
goto again;
}
DICT_INIT(dict_opt_c, const char *, struct opt_c_struct,
DICT_INIT(dict_opt_c, char *, struct opt_c_struct,
dict_hash_string, dict_eq_string, NULL);
}
......
......@@ -136,10 +136,10 @@ named_type_destroy(struct named_type *named)
void
protolib_init(struct protolib *plib)
{
DICT_INIT(&plib->prototypes, const char *, struct prototype,
DICT_INIT(&plib->prototypes, char *, struct prototype,
dict_hash_string, dict_eq_string, NULL);
DICT_INIT(&plib->named_types, const char *, struct named_type,
DICT_INIT(&plib->named_types, char *, struct named_type,
dict_hash_string, dict_eq_string, NULL);
VECT_INIT(&plib->imports, struct protolib *);
......@@ -444,7 +444,7 @@ add_imports_cb(struct opt_F_t *entry, void *data)
int
protolib_cache_init(struct protolib_cache *cache, struct protolib *import)
{
DICT_INIT(&cache->protolibs, const char *, struct protolib *,
DICT_INIT(&cache->protolibs, char *, struct protolib *,
dict_hash_string, dict_eq_string, NULL);
protolib_init(&cache->imports);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment