Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: clinker/libffi: cast to pointer from integer & comparison between pointer and integer #33

Open
dumblob opened this issue Nov 13, 2014 · 0 comments

Comments

@dumblob
Copy link

dumblob commented Nov 13, 2014

...
cd libffi && make -f Makefile
make[4]: Entering directory '/home/test/dao/modules/clinker/libffi'
cc -ggdb -O0 -DDEBUG -fPIC -fPIC -Iinclude/ -Isrc/x86/  -c src/closures.c -o DaoMake.Objs/closures.c.54E4.o
cc -ggdb -O0 -DDEBUG -fPIC -fPIC -Iinclude/ -Isrc/x86/  -c src/dlmalloc.c -o DaoMake.Objs/dlmalloc.c.5B52.o
src/dlmalloc.c: In function ‘mmap_resize’:
src/dlmalloc.c:3255:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     char* cp = (char*)CALL_MREMAP((char*)oldp - offset,
                ^
src/dlmalloc.c: In function ‘sys_trim’:
src/dlmalloc.c:3674:62: warning: comparison between pointer and integer
             if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) ||
                                                              ^
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant