changes for the Clang compiler

This commit is contained in:
czurnieden 2019-01-13 01:07:42 +01:00 committed by Steffen Jaeckel
parent b7216e89ea
commit aadb1efa25
2 changed files with 1 additions and 6 deletions

View File

@ -185,7 +185,7 @@ static int s_gen_random(mp_digit *r)
*/ */
mp_digit gen_random_mp_digit(void) { mp_digit gen_random_mp_digit(void) {
mp_digit p; mp_digit p;
MP_UNUSED_VARIABLE s_gen_random(&p); (void) s_gen_random(&p);
return p; return p;
} }

View File

@ -600,11 +600,6 @@ int mp_fwrite(const mp_int *a, int radix, FILE *stream);
#define mp_todecimal(M, S) mp_toradix((M), (S), 10) #define mp_todecimal(M, S) mp_toradix((M), (S), 10)
#define mp_tohex(M, S) mp_toradix((M), (S), 16) #define mp_tohex(M, S) mp_toradix((M), (S), 16)
#if ( (defined __GCC__) || (defined __clang__) )
# define MP_UNUSED_VARIABLE __attribute__((unused))
#else
# define MP_UNUSED_VARIABLE (void)
#endif
/* /*
Public for legacy reasons only, do not use elsewhere! Public for legacy reasons only, do not use elsewhere!
There is a good reason it is not officially documented! There is a good reason it is not officially documented!