Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix GCC -Wnonnull
  • Loading branch information
dr-m committed May 14, 2020
1 parent 11147be commit 7d51c35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/mysqltest.cc
Expand Up @@ -587,9 +587,10 @@ ATTRIBUTE_NORETURN
static void cleanup_and_exit(int exit_code);

ATTRIBUTE_NORETURN
void really_die(const char *msg);
static void really_die(const char *msg);
void report_or_die(const char *fmt, ...);
void die(const char *fmt, ...);
ATTRIBUTE_NORETURN
static void die(const char *fmt, ...);
static void make_error_message(char *buf, size_t len, const char *fmt, va_list args);
ATTRIBUTE_NORETURN ATTRIBUTE_FORMAT(printf, 1, 2)
void abort_not_supported_test(const char *fmt, ...);
Expand Down Expand Up @@ -1554,7 +1555,7 @@ static void make_error_message(char *buf, size_t len, const char *fmt, va_list a
s+= my_snprintf(s, end -s, "\n", start_lineno);
}

void die(const char *fmt, ...)
static void die(const char *fmt, ...)
{
char buff[DIE_BUFF_SIZE];
va_list args;
Expand All @@ -1563,7 +1564,7 @@ void die(const char *fmt, ...)
really_die(buff);
}

void really_die(const char *msg)
static void really_die(const char *msg)
{
static int dying= 0;
fflush(stdout);
Expand Down

0 comments on commit 7d51c35

Please sign in to comment.