Hi, i'm using crypto++ and when i compile it using GCC, there are several
warnings regarding unused variables at simple.h, the messages are bounded
with 2 lines (88 and 93), with a total of 9 unused varaibles

My crypto++ version is 5.4-r1 (the last one on the gentoo portage tree)

The code for suppressing this warning messages is really simple (works with
GCC, don't use nor have other compilers), if someone could check if this
will work on other compilers it would be great

Below I'm pasting the code, just the part that's important for this (the
template including both lines)
template <class T>
class CRYPTOPP_NO_VTABLE InputRejecting : public T
{
public:
        struct InputRejected : public NotImplemented
                {InputRejected() : NotImplemented("BufferedTransformation:
this object doesn't allow input") {}};

        // shouldn't be calling these functions on this class
        size_t Put2(const byte *begin __attribute__((unused)), size_t length
__attribute__((unused)), int messageEnd __attribute__((unused)), bool
blocking __attribute__((unused)))
                {throw InputRejected();}
        bool IsolatedFlush(bool, bool) {return false;}
        bool IsolatedMessageSeriesEnd(bool) {throw InputRejected();}

        size_t ChannelPut2(const std::string &channel
__attribute__((unused)), const byte *begin __attribute__((unused)), size_t
length __attribute__((unused)), int messageEnd __attribute__((unused)), bool
blocking __attribute__((unused)))
                {throw InputRejected();}
        bool ChannelMessageSeriesEnd(const std::string &, int, bool) {throw
InputRejected();}
};

Best Regards

José Tomás Eterovic

--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to