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 "ECryptoMode.h"
#include "CString.h" #include "CString.h"
#if SYSAPI_UNIX #if __APPLE__
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtautological-compare" #pragma GCC diagnostic ignored "-Wtautological-compare"
#pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic ignored "-Wall"
#pragma GCC diagnostic ignored "-Wunused-function"
#endif #endif
#include <cryptopp562/gcm.h> #include <cryptopp562/gcm.h>
#include <cryptopp562/modes.h> #include <cryptopp562/modes.h>
#include <cryptopp562/aes.h> #include <cryptopp562/aes.h>
#if SYSAPI_UNIX #if __APPLE__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

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