Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7010: A few 32/64 bit warning fixes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-12 16:50:02
#7010: A few 32/64 bit warning fixes
-------------------------------------------------------+--------------------
Reporter: Luke Elliott <lukester_null@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost Development Trunk | Severity: Cosmetic
Resolution: | Keywords:
-------------------------------------------------------+--------------------
Comment (by lukester_null@â¦):
Actually looking at it again, looks like it would throw up some warnings
with VC++ and it does indeed:
{{{
basic_iarchive.cpp
..\..\..\libs\serialization\src\basic_iarchive.cpp(345) : warning C4267:
'argument' : conversion from 'size_t' to 'const unsigned int', possible
loss of data
..\..\..\libs\serialization\src\basic_iarchive.cpp(380) : warning C4267:
'argument' : conversion from 'size_t' to 'const unsigned int', possible
loss of data
..\..\..\libs\serialization\src\basic_iarchive.cpp(391) : warning C4267:
'argument' : conversion from 'size_t' to 'const unsigned int', possible
loss of data
..\..\..\libs\serialization\src\basic_iarchive.cpp(470) : warning C4267:
'initializing' : conversion from 'size_t' to 'const unsigned int',
possible loss of data
compile-c-c++ ..\..\..\bin.v2\libs\serialization\build\msvc-9.0\debug
\address-model-64\threading-multi\basic_iserializer.obj
basic_iserializer.cpp
compile-c-c++ ..\..\..\bin.v2\libs\serialization\build\msvc-9.0\debug
\address-model-64\threading-multi\basic_oarchive.obj
basic_oarchive.cpp
..\..\..\libs\serialization\src\basic_oarchive.cpp(279) : warning C4267:
'argument' : conversion from 'size_t' to 'const unsigned int', possible
loss of data
..\..\..\libs\serialization\src\basic_oarchive.cpp(367) : warning C4267:
'argument' : conversion from 'size_t' to 'const unsigned int', possible
loss of data
compile-c-c++ ..\..\..\bin.v2\libs\serialization\build\msvc-9.0\debug
\address-model-64\threading-multi\basic_oserializer.obj
basic_oserializer.cpp
}}}
... and so on.
It also throws up a bench of warnings about unsafe functions. I normally
don't see those as _SCL_SECURE_NO_WARNINGS and _CRT_SECURE_NO_DEPRECATE
get set in my build environment (not via bjam).
So sorry about the confusion there. This was a patch I've been applying
against boost for some time and I thought it was about time I mentioned it
- but sadly forgot where it was generating the warnings in the first
place!
If I get some time I'll have a look with SunStudio but hopefully the VC++
warnings can be removed in the meantime?
Best regards
Luke Elliott.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7010#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC