Clear unused-value warnings with void cast

This commit is contained in:
Jeffrey Walton 2023-06-22 23:24:36 -04:00
parent 14d799767a
commit dced966b7a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
5 changed files with 4 additions and 20 deletions

View File

@ -3,11 +3,7 @@
#include <string> #include <string>
#if CRYPTOPP_MSC_VERSION #if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4100 4189 4996) # pragma warning(disable: 4189 4996)
#endif
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
# pragma GCC diagnostic ignored "-Wunused-variable"
#endif #endif
USING_NAMESPACE(CryptoPP) USING_NAMESPACE(CryptoPP)

View File

@ -3,14 +3,6 @@
#include "pch.h" #include "pch.h"
#include "config.h" #include "config.h"
#if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4100)
#endif
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
# pragma GCC diagnostic ignored "-Wunused-value"
#endif
#ifndef CRYPTOPP_IMPORTS #ifndef CRYPTOPP_IMPORTS
#include "basecode.h" #include "basecode.h"

View File

@ -4,11 +4,7 @@
#include "config.h" #include "config.h"
#if CRYPTOPP_MSC_VERSION #if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4100 4189 4355) # pragma warning(disable: 4189 4355)
#endif
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
# pragma GCC diagnostic ignored "-Wunused-value"
#endif #endif
#ifndef CRYPTOPP_IMPORTS #ifndef CRYPTOPP_IMPORTS

View File

@ -47,7 +47,7 @@ extern "C" {void __cdecl _CRT_DEBUGGER_HOOK(int); }
#include <iostream> #include <iostream>
#if CRYPTOPP_MSC_VERSION #if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4100 4702) # pragma warning(disable: 4702)
#endif #endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)

View File

@ -41,7 +41,7 @@
#include "config.h" #include "config.h"
#if CRYPTOPP_MSC_VERSION #if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4100 4731) # pragma warning(disable: 4731)
#endif #endif
#ifndef CRYPTOPP_IMPORTS #ifndef CRYPTOPP_IMPORTS