Skip to content

error: redefinition of 'devt_hash_ops' const struct hash_ops devt_hash_ops #191

@leleliu008

Description

@leleliu008
In file included from /var/folders/jw/7vmz4m1970932zln9tb1whxr0000gn/T/tmp.5z8pxBHb/src/shared/hashmap.c:29:
/var/folders/jw/7vmz4m1970932zln9tb1whxr0000gn/T/tmp.5z8pxBHb/src/shared/hashmap.h:101:30: warning: 'extern' variable has an initializer [-Wextern-initializer]
extern const struct hash_ops devt_hash_ops = {
                             ^
/var/folders/jw/7vmz4m1970932zln9tb1whxr0000gn/T/tmp.5z8pxBHb/src/shared/hashmap.c:338:23: error: redefinition of 'devt_hash_ops'
const struct hash_ops devt_hash_ops = {
                      ^
/var/folders/jw/7vmz4m1970932zln9tb1whxr0000gn/T/tmp.5z8pxBHb/src/shared/hashmap.h:101:30: note: previous definition is here
extern const struct hash_ops devt_hash_ops = {
                             ^
1 warning and 1 error generated.
gmake[3]: *** [Makefile:535: hashmap.lo] Error 1
gmake[3]: Leaving directory '/private/var/folders/jw/7vmz4m1970932zln9tb1whxr0000gn/T/tmp.5z8pxBHb/1610218661/armeabi-v7a/src/shared'

src/shared/hashmap.h
src/shared/hashmap.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions