fixed: pragma usage not cross platform

This commit is contained in:
Nick Bolton 2014-02-25 18:16:03 +00:00
parent 78ecdf4c6e
commit a5d702c8b5
2 changed files with 5 additions and 6 deletions

View File

@ -20,18 +20,17 @@
#include "ECryptoMode.h"
#include "CString.h"
#if SYSAPI_UNIX
#if __APPLE__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtautological-compare"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-function"
#pragma GCC diagnostic ignored "-Wall"
#endif
#include <cryptopp562/gcm.h>
#include <cryptopp562/modes.h>
#include <cryptopp562/aes.h>
#if SYSAPI_UNIX
#if __APPLE__
#pragma GCC diagnostic pop
#endif

View File

@ -21,7 +21,7 @@
#include "CStreamFilter.h"
#include "CCryptoMode.h"
#if SYSAPI_UNIX
#if __APPLE__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wall"
#endif
@ -29,7 +29,7 @@
#include <cryptopp562/osrng.h>
#include <cryptopp562/sha.h>
#if SYSAPI_UNIX
#if __APPLE__
#pragma GCC diagnostic pop
#endif