Added test case for CRYPTOPP_UNUSED by applying it to argc and argv in tes.cpp (even though they are used)

pull/2/head
Jeffrey Walton 2015-06-07 20:56:49 -04:00
parent ca6e2fa683
commit 1d237fe79d
2 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,7 @@
typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs
#define CRYPTOPP_UNUSED(x) ((void)x); // cast to void. Portable way to suppress unused variable
#define CRYPTOPP_UNUSED(x) ((void)x) // cast to void. Portable way to suppress unused variable
NAMESPACE_BEGIN(CryptoPP)

View File

@ -114,6 +114,8 @@ int CRYPTOPP_API main(int argc, char *argv[])
argc = ccommand(&argv);
#endif
CRYPTOPP_UNUSED(argc), CRYPTOPP_UNUSED(argv);
try
{
RegisterFactories();