BoxFort icon indicating copy to clipboard operation
BoxFort copied to clipboard

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

Open yurivict opened this issue 3 years ago • 0 comments

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 *);
                                            ^

yurivict avatar Jul 03 '22 15:07 yurivict