These should all be fixed in the "master" branch and in the new
developer's release. I chased down the GCC flag that produces similar
warnings (-Wconversion), and turned it on.
-- jeffrey
On 01/11/2014 04:34 AM, Durand Jean-Damien wrote:
Excellent.
Jeffrey, look to "possible loss of data" in the log.
A priori:
c:\.cpan\build\Marpa-R2-2.079_008\libmarpa_build\marpa_obs.h(121) :
warning C4244: 'initializing' : conversion from '__w64 int' to 'const
int', possible loss of data
marpa_avl.c(114) : warning C4244: '=' : conversion from 'int' to
'unsigned char', possible loss of data
c:\.cpan\build\Marpa-R2-2.079_008\libmarpa_build\marpa_obs.h(121) :
warning C4244: 'initializing' : conversion from '__w64 int' to 'const
int', possible loss of data
marpa.w(5014) : warning C4244: '=' : conversion from '__w64 int' to
'int', possible loss of data
marpa.w(5023) : warning C4244: '=' : conversion from '__w64 int' to
'int', possible loss of data
marpa.w(5872) : warning C4244: '=' : conversion from '__w64 int' to
'Marpa_AHFA_Item_ID', possible loss of data
marpa.w(5888) : warning C4244: '=' : conversion from '__w64 int' to
'Marpa_AHFA_State_ID', possible loss of data
marpa.w(6060) : warning C4244: '=' : conversion from '__w64 int' to
'Marpa_AHFA_State_ID', possible loss of data
marpa.w(5059) : warning C4244: 'return' : conversion from '__w64 int'
to 'int', possible loss of data
marpa.w(5416) : warning C4244: 'return' : conversion from '__w64 int'
to 'Marpa_AHFA_Item_ID', possible loss of data
marpa.w(6399) : warning C4244: '=' : conversion from '__w64 int' to
'Marpa_AHFA_State_ID', possible loss of data
marpa.w(9326) : warning C4244: '=' : conversion from '__w64 int' to
'int', possible loss of data
marpa.w(12512) : warning C4267: 'return' : conversion from 'size_t' to
'int', possible loss of data
marpa.w(13306) : warning C4244: 'initializing' : conversion from
'__w64 int' to 'int', possible loss of data
marpa.w(14886) : warning C4267: 'function' : conversion from 'size_t'
to 'int', possible loss of data
marpa.w(15350) : warning C4267: 'function' : conversion from 'size_t'
to 'int', possible loss of data
c:\.cpan\build\Marpa-R2-2.079_008\libmarpa_build\marpa_obs.h(121) :
warning C4244: 'initializing' : conversion from '__w64 int' to 'const
int', possible loss of data
marpa_tavl.c(150) : warning C4244: '=' : conversion from 'int' to
'unsigned char', possible loss of data
c:\perl-5.18.1\lib\CORE\inline.h(147) : warning C4244: 'return' :
conversion from 'int' to 'char', possible loss of data
c:\perl-5.18.1\lib\CORE\inline.h(155) : warning C4244: 'return' :
conversion from 'int' to 'char', possible loss of data
Thanks / JD.
Le samedi 11 janvier 2014 13:26:14 UTC+1, rns a écrit :
On Sat, Jan 11, 2014 at 2:12 PM, Durand Jean-Damien
<jeandami...@gmail.com <javascript:>> wrote:
I am not in front of a Windows right now, but I know MSVC is
very good also at finding 64bits portability issues
<http://msdn.microsoft.com/en-us/library/yt4xw8fh.aspx>. /Wp64
or /W4 option, would you mind to add it ?
Sure, log attached.
Thanks / JD.
Le samedi 11 janvier 2014 12:58:31 UTC+1, rns a écrit :
Under winxp sp3 as part of Marpa::R2's install. /Wall is
-Wall in a happier world of gcc :) and /Za is a rough
[1] equivalent of -ansi -pedantic.
Log file attached, perhaps some warnings can be useful.
That's because libmarpa uses no MS-specific code, as MS
system headers are known to not compile with /Za [2], [3]
and AFAIK, XS code doesn't compile with /Za unless
(possibly) windows.h is isolated in a file with this
option disabled.
[1] "GCC can be a lot more pedantic than VStudio" -- and
vice versa. They're pedantic about different things.
—
http://stackoverflow.com/questions/2292701/what-visual-c-setting-option-flag-is-the-counterpart-of-ansi-pedantic-in-g
<http://stackoverflow.com/questions/2292701/what-visual-c-setting-option-flag-is-the-counterpart-of-ansi-pedantic-in-g>
[2]
http://stackoverflow.com/questions/5489326/za-compiler-directive-does-not-compile-system-headers-in-vs2010
<http://stackoverflow.com/questions/5489326/za-compiler-directive-does-not-compile-system-headers-in-vs2010>
[3]
http://connect.microsoft.com/VisualStudio/feedback/details/780509/including-windows-h-and-compiling-with-za-disable-language-extensions
<http://connect.microsoft.com/VisualStudio/feedback/details/780509/including-windows-h-and-compiling-with-za-disable-language-extensions>
--
You received this message because you are subscribed to the
Google Groups "marpa parser" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to marpa-parser...@googlegroups.com
<javascript:>.
For more options, visit
https://groups.google.com/groups/opt_out
<https://groups.google.com/groups/opt_out>.
--
You received this message because you are subscribed to the Google
Groups "marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "marpa
parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to marpa-parser+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.