mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-09 13:15:33 +08:00
fixed: pragma usage not cross platform
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user