|
Boost : |
From: Martin (m_at_[hidden])
Date: 2002-10-19 10:20:51
----- Original Message -----
From: "Jeff Garland" <jeff_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Sunday, October 20, 2002 9:43 AM
Subject: RE: [boost] Re: date_time issues
> > I have managed to compile the release of my project with date_time
without
> > linking to the release date_time library. The same project needed to be
> > linked to the debug library when compiling as debug (MVS7). Strange.
>
> Not really. If you don't do any I/O calls you won't need the library.
> The library contains a only few methods that access some string, the
> other 95% goes inline.
>
> > My comment on warnings would be that preferably libraries should not
> > generate any warnings if possible simply so that developers can take
note of
> > their own warnings when they generate them. However I appreciate the
effort
> > involved in this library so I should not be too picky.
>
> I agree, or at the very least these should be documented. Anyway, I'm
going to
> try and tame some of the warnings (see previous mail). However, it is
often
> the case that the author of a boost library doesn't have direct access to
> all or even most of the compilers that users use. So we are dependent on
> user reports, regression tests, and patch suggestions from users of these
> compilers. I for one don't happen to own VC7 and the regression test
didn't
> show any warnings. So until someone mentioned it today I wasn't aware of
the
> warnings...
Here is a dump of the VC7 output (warning level 4 in debug mode and
multithreaded) (run in the studio environment). I don't know enough about
the day_time library yet to figure out a fix but you may find it usefull:
------ Rebuild All started: Project: VS7Lib, Configuration: Debug
Win32 ------
Deleting intermediate files and output files for project 'VS7Lib',
configuration 'Debug|Win32'.
Compiling...
posix_time_types.cpp
gregorian_types.cpp
greg_weekday.cpp
greg_month.cpp
c:\boost_1_29_0\boost\date_time\gregorian\greg_month.hpp(36) : warning
C4244: 'argument' : conversion from 'boost::gregorian::months_of_year' to
'boost::CV::constrained_value<value_policies>::value_type', possible loss of
data
with
[
value_policies=boost::gregorian::greg_month_policies
]
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(135) : warning C4100:
'wd' : unreferenced formal parameter
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(136) : while compiling
class-template member function 'void
boost::date_time::date_names_put<Config,charT,OutputIterator>::do_put_weekda
y_short(boost::date_time::date_names_put<Config,charT,OutputIterator>::iter_
type
&,boost::date_time::date_names_put<Config,charT,OutputIterator>::weekday_enu
m) const'
with
[
Config=boost::gregorian::greg_facet_config,
charT=char,
OutputIterator=std::ostreambuf_iterator<char,std::char_traits<char>>
]
c:\boost_1_29_0\libs\date_time\src\gregorian\greg_month.cpp(19) : see
reference to class template instantiation
'boost::date_time::date_names_put<Config,charT,OutputIterator>' being
compiled
with
[
Config=boost::gregorian::greg_facet_config,
charT=char,
OutputIterator=std::ostreambuf_iterator<char,std::char_traits<char>>
]
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(135) : warning C4100:
'oitr' : unreferenced formal parameter
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(138) : warning C4100:
'wd' : unreferenced formal parameter
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(139) : while compiling
class-template member function 'void
boost::date_time::date_names_put<Config,charT,OutputIterator>::do_put_weekda
y_long(boost::date_time::date_names_put<Config,charT,OutputIterator>::iter_t
ype
&,boost::date_time::date_names_put<Config,charT,OutputIterator>::weekday_enu
m) const'
with
[
Config=boost::gregorian::greg_facet_config,
charT=char,
OutputIterator=std::ostreambuf_iterator<char,std::char_traits<char>>
]
c:\boost_1_29_0\boost\date_time\date_names_put.hpp(138) : warning C4100: 'oi
tr' : unreferenced formal parameter
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(61) : warning C4244:
'initializing' : conversion from 'unsigned long' to 'unsigned short',
possible loss of data
e:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(77) : while
compiling class-template member function
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::ymd_ty
pe
boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::from_da
y_number(boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>
::date_int_type)'
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
c:\boost_1_29_0\boost\date_time\gregorian\greg_calendar.hpp(22) : see
reference to class template instantiation
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>' being
compiled
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(62) : warning C4244:
'initializing' : conversion from 'unsigned long' to 'unsigned short',
possible loss of data
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(66) : warning C4244:
'argument' : conversion from
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_i
nt_type' to 'unsigned short', possible loss of data
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
Generating Code...
Creating library...
Build log was saved at
"file://c:\boost_1_29_0\libs\date_time\src\VS7Lib\Debug\BuildLog.htm"
VS7Lib - 0 error(s), 8 warning(s)
---------------------- Done ----------------------
Rebuild All: 1 succeeded, 0 failed, 0 skipped
This is at warning level 4 and i used the project that i have send earlier
as an attachement.
Martin.
PS: here is a dump at level 3 (debug). This may isolate the more important
warnings
------ Rebuild All started: Project: VS7Lib, Configuration: Debug
Win32 ------
Deleting intermediate files and output files for project 'VS7Lib',
configuration 'Debug|Win32'.
Compiling...
posix_time_types.cpp
gregorian_types.cpp
greg_weekday.cpp
greg_month.cpp
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(61) : warning C4244:
'initializing' : conversion from 'unsigned long' to 'unsigned short',
possible loss of data
e:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(77) : while
compiling class-template member function
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::ymd_ty
pe
boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::from_da
y_number(boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>
::date_int_type)'
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
c:\boost_1_29_0\boost\date_time\gregorian\greg_calendar.hpp(22) : see
reference to class template instantiation
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>' being
compiled
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(62) : warning C4244:
'initializing' : conversion from 'unsigned long' to 'unsigned short',
possible loss of data
c:\boost_1_29_0\boost\date_time\gregorian_calendar.ipp(66) : warning C4244:
'argument' : conversion from
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_i
nt_type' to 'unsigned short', possible loss of data
with
[
ymd_type_=boost::gregorian::greg_year_month_day,
date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type
]
Generating Code...
Creating library...
Build log was saved at
"file://c:\boost_1_29_0\libs\date_time\src\VS7Lib\Debug\BuildLog.htm"
VS7Lib - 0 error(s), 3 warning(s)
---------------------- Done ----------------------
Rebuild All: 1 succeeded, 0 failed, 0 skipped
>
> http://boost.sourceforge.net/regression-logs/cs-win32-diff.html
>
> Jeff
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk