-
Notifications
You must be signed in to change notification settings - Fork 28
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
Compile warnings on Windows with MinGW #107
Comments
@pali suggestions for fixing. I would think this is a problem in blead as well, not just for this module. |
Indeed - the same issue has resurfaced at Perl/perl5#20080 . This patch to parts/inc/misc avoids the warnings and appears to be functionally correct to me. (The Devel-PPPort test suite still passes all tests for me on 64-bit windows, 32-bit Windows and 64-bit Ubuntu.)
If there are no requests for alterations, I'll submit it as a PR. It's a little bit inefficient in that, on a system where PTRSIZE > LONGSIZE, Cheers, |
I think that, in the absence of any corrections, the next thing to do is to create a new pull request for this at https://github.com/Perl/perl5/pulls. If no-one else wants to create that PR, I'm happy to do it.
|
It's easier to comment on an actual PR, but here are some. Maybe a real PR would take away the ambiguity I don't understand this, actually. I do believe that a UV is guaranteed to be large enough to hold any pointer on the platform as compiled. So if, an unsigned long isn't big enough, what is? I think only a UV (if we had 128bit words, a quad could be an intermediate step). Are IVSIZE and UVSIZE ever different? And, unless I'm being fooled, the CODE: is merely for a test function; efficiency doesn't matte, and I don't see how it would help a general user. PTRU does not look to me to be an API element, nor should it. Thus it needs to follow the naming conventions detailed in HACKERS |
Yes - but with 64-bit builds on MS Windows, although ptrsize and uvsize are 8, longsize is still only 4.
Ah - yes I overlooked that there might be "naming conventions" to consider here. But I've now looked in perlhack couldn't spot any info about it.
Agreed - and I remarked as such. Cheers, |
https://travis-ci.org/Dual-Life/Devel-PPPort/jobs/546411085
The text was updated successfully, but these errors were encountered: