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

Compiler warnings on win64 with mingw-w64 #2

Closed
jeroen opened this issue Dec 2, 2016 · 3 comments
Closed

Compiler warnings on win64 with mingw-w64 #2

jeroen opened this issue Dec 2, 2016 · 3 comments

Comments

@jeroen
Copy link

jeroen commented Dec 2, 2016

I would really like to eliminate these. The problem is we store an unsinged char in a void * but on Windows 64 these have different size.

Found the following significant warnings:
  cmark/blocks.c:395:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  cmark/inlines.c:511:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  cmark/inlines.c:525:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
@kivikakk
Copy link

kivikakk commented Dec 9, 2016

Just catching up on this: did the branch at https://github.com/github/cmark/tree/kivikakk/win32 quell these warnings for you? If so, I'll merge!

@kivikakk
Copy link

kivikakk commented Dec 9, 2016

I'll merge (what is now) #5 anyway so it at least builds on MSVC10 — please let me know if this doesn't fix it for mingw-w64 as well.

@jeroen
Copy link
Author

jeroen commented Dec 13, 2016

Seems to be fixed, thanks!

@jeroen jeroen closed this as completed Dec 13, 2016
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

2 participants