1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Disable long long warnings when compiled with an old g++ version.

This commit is contained in:
Frank Denis 2013-12-31 15:20:02 +01:00
parent eab6ff79d4
commit 41e66896c8
33 changed files with 105 additions and 0 deletions

View File

@ -1,6 +1,12 @@
#include "ge.h"
#include "crypto_uint32.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
#endif
static unsigned char equal(signed char b,signed char c)
{
unsigned char ub = b;

View File

@ -3,6 +3,12 @@
#include "common.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
#endif
typedef struct{
unsigned long long a;
unsigned long long b;

View File

@ -7,6 +7,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_auth_hmacsha256_KEYBYTES 32U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_auth_hmacsha512256_KEYBYTES 32U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -14,6 +14,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -13,6 +13,9 @@
#define crypto_box_curve25519xsalsa20poly1305_MACBYTES (crypto_box_curve25519xsalsa20poly1305_ZEROBYTES - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES)
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -7,6 +7,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -24,6 +24,9 @@
#endif
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -9,6 +9,9 @@
#define crypto_hash_PRIMITIVE "sha512"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_hash_sha256_BLOCKBYTES 64U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_hash_sha512_BLOCKBYTES 128U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_hashblocks_sha256_BLOCKBYTES 64U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_hashblocks_sha512_BLOCKBYTES 128U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -7,6 +7,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -7,6 +7,9 @@
#define crypto_onetimeauth_poly1305_BYTES 16U
#define crypto_onetimeauth_poly1305_KEYBYTES 32U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -5,6 +5,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -5,6 +5,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -7,6 +7,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -11,6 +11,9 @@
#define crypto_secretbox_xsalsa20poly1305_MACBYTES (crypto_secretbox_xsalsa20poly1305_ZEROBYTES - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES)
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -7,6 +7,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -8,6 +8,9 @@
#define crypto_shorthash_siphash24_KEYBYTES 16U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -14,6 +14,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -10,6 +10,9 @@
#define crypto_sign_ed25519_BYTES 64U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -9,6 +9,9 @@
#define crypto_sign_edwards25519sha512batch_BYTES 64U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -15,6 +15,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -17,6 +17,9 @@
#define crypto_stream_aes128ctr_BEFORENMBYTES 1408U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -18,6 +18,9 @@
#define crypto_stream_aes256estream_BEFORENMBYTES 276U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -13,6 +13,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -13,6 +13,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -13,6 +13,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -16,6 +16,9 @@
#define crypto_stream_xsalsa20_NONCEBYTES 24U
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif

View File

@ -10,6 +10,9 @@
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif