[pooma-dev] RFA: src/NewField Changes

Jeffrey Oldham oldham at codesourcery.com
Thu Mar 29 19:11:57 UTC 2001


> > What was the resolution on all of those static_casts?  
> 
> The warnings about comparisons between unsigned and signed ints were
> the reason for those static_cast's.  I do not know the best solution.
> What do you suggest?
> 
> /nfs/oz/home/oldham/pooma/r2/src/Domain/DomainTraits.Interval.h: In static 
>    member function `static void DomainTraits<Interval<1> >::setDomain(int 
>    (&)[2], const T1&, const T2&) [with T1 = int, T2 = unsigned int]':
> /nfs/oz/home/oldham/pooma/r2/src/Domain/Interval.h:365:   instantiated from here
> /nfs/oz/home/oldham/pooma/r2/src/Domain/DomainTraits.Interval.h:266: warning: comparison
>    between signed and unsigned integer expressions

Mark suggested adding the "-Wno-sign-compare" g++ warning flag to
suppress these warnings so the static_cast's are unnecessary.

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com



More information about the pooma-dev mailing list