mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Remove warn_unused_result attribute where it is not critical
This commit is contained in:
@@ -23,8 +23,7 @@ size_t crypto_auth_keybytes(void);
|
||||
|
||||
#define crypto_auth_PRIMITIVE "hmacsha512256"
|
||||
SODIUM_EXPORT
|
||||
const char *crypto_auth_primitive(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *crypto_auth_primitive(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
int crypto_auth(unsigned char *out, const unsigned char *in,
|
||||
|
||||
@@ -39,8 +39,7 @@ size_t crypto_generichash_keybytes(void);
|
||||
|
||||
#define crypto_generichash_PRIMITIVE "blake2b"
|
||||
SODIUM_EXPORT
|
||||
const char *crypto_generichash_primitive(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *crypto_generichash_primitive(void);
|
||||
|
||||
typedef crypto_generichash_blake2b_state crypto_generichash_state;
|
||||
SODIUM_EXPORT
|
||||
|
||||
@@ -38,8 +38,7 @@ size_t crypto_sign_secretkeybytes(void);
|
||||
|
||||
#define crypto_sign_PRIMITIVE "ed25519"
|
||||
SODIUM_EXPORT
|
||||
const char *crypto_sign_primitive(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *crypto_sign_primitive(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
int crypto_sign_seed_keypair(unsigned char *pk, unsigned char *sk,
|
||||
|
||||
@@ -31,8 +31,7 @@ size_t crypto_stream_noncebytes(void);
|
||||
|
||||
#define crypto_stream_PRIMITIVE "xsalsa20"
|
||||
SODIUM_EXPORT
|
||||
const char *crypto_stream_primitive(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *crypto_stream_primitive(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
int crypto_stream(unsigned char *c, unsigned long long clen,
|
||||
|
||||
@@ -44,8 +44,7 @@ SODIUM_EXPORT
|
||||
int randombytes_set_implementation(randombytes_implementation *impl);
|
||||
|
||||
SODIUM_EXPORT
|
||||
const char *randombytes_implementation_name(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *randombytes_implementation_name(void);
|
||||
|
||||
/* -- NaCl compatibility interface -- */
|
||||
|
||||
|
||||
@@ -17,8 +17,7 @@ SODIUM_EXPORT
|
||||
extern struct randombytes_implementation randombytes_nativeclient_implementation;
|
||||
|
||||
SODIUM_EXPORT
|
||||
const char *randombytes_nativeclient_implementation_name(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *randombytes_nativeclient_implementation_name(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
uint32_t randombytes_nativeclient(void);
|
||||
|
||||
@@ -22,8 +22,7 @@ SODIUM_EXPORT
|
||||
extern struct randombytes_implementation randombytes_salsa20_implementation;
|
||||
|
||||
SODIUM_EXPORT
|
||||
const char *randombytes_salsa20_implementation_name(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *randombytes_salsa20_implementation_name(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
uint32_t randombytes_salsa20_random(void);
|
||||
|
||||
@@ -21,8 +21,7 @@ SODIUM_EXPORT
|
||||
extern struct randombytes_implementation randombytes_sysrandom_implementation;
|
||||
|
||||
SODIUM_EXPORT
|
||||
const char *randombytes_sysrandom_implementation_name(void)
|
||||
__attribute__ ((warn_unused_result));
|
||||
const char *randombytes_sysrandom_implementation_name(void);
|
||||
|
||||
SODIUM_EXPORT
|
||||
uint32_t randombytes_sysrandom(void);
|
||||
|
||||
Reference in New Issue
Block a user