On Jan 22, 3:56 pm, Michael Richards <[email protected]> wrote: > Compiling 5.6.1 I get a number of warnings. Build platform is gcc > version 4.2.1 20070719 [FreeBSD] > > They seem to mostly come from the following file at line 322: / > cryptopp/algparam.h > > void MoveInto(void *buffer) const > { > AlgorithmParametersTemplate<T>* p = new(buffer) > AlgorithmParametersTemplate<T>(*this); > } > > Is there some easy way to fix this so the noise level is lower? I like > to see code compile without any warnings so when I do make a mistake > it shows up right away. In general, I try to use -Wall -Wextra -Wno-unused-parameter -Wno-type- limits -Wno-unknown-pragmas. The above warning will need something other than -Wno-unused-parameter, perhaps -Wno-unused.
For signed/unsigned compares due to templates, try -Wno-type-limits. But I think it also suppresses legitimate signed/unsigned compare warnings. Jeff -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
