Skip to content

clang warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not #39

@yurivict

Description

@yurivict

clang-13 prints this:

../src/arena.c:110:40: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        if (!mincore(addr, pagesize(), &p))
                                       ^~
/usr/include/sys/mman.h:327:41: note: passing argument to parameter here
int     mincore(const void *, size_t, char *);
                                            ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions