Mark test functions as static and __attribute__ ((noreturn))

This commit is contained in:
Frank Denis 2016-03-27 00:32:25 +01:00
parent de22f38da2
commit 7afe93f9a2
5 changed files with 5 additions and 5 deletions

View File

@ -3076,7 +3076,7 @@ static struct {
}
};
int
static int
tv(void)
{
unsigned char *ad;

View File

@ -17,7 +17,7 @@ static unsigned char c[16]
static unsigned char out[64];
void print(unsigned char *x, unsigned char *y)
static void print(unsigned char *x, unsigned char *y)
{
int i;
unsigned int borrow = 0;

View File

@ -1291,7 +1291,7 @@ static struct {
}
};
int
static int
tv(void)
{
unsigned char *expected_out;

View File

@ -12,7 +12,7 @@
# warning The sodium_utils2 test is expected to fail with address sanitizer
#endif
static void segv_handler(int sig)
__attribute__ ((noreturn)) static void segv_handler(int sig)
{
(void) sig;

View File

@ -12,7 +12,7 @@
# warning The sodium_utils3 test is expected to fail with address sanitizer
#endif
static void segv_handler(int sig)
__attribute__ ((noreturn)) static void segv_handler(int sig)
{
(void) sig;