fix warning

master
Pierre Joye 2021-09-10 04:51:57 +07:00
parent c80a7bf3ff
commit 8074c82046
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ static int error_handler_called = 0;
static void error_handler(int priority, const char *format, va_list args)
{
ARG_NOT_USED(args);
if (!strcmp(format, MSG)) {
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
error_handler_called = 1;

View File

@ -19,6 +19,7 @@ static int error_handler_called = 0;
static void error_handler(int priority, const char *format, va_list args)
{
ARG_NOT_USED(args);
if (!strcmp(format, MSG)) {
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
error_handler_called = 1;
@ -34,7 +35,7 @@ int main()
im = gdImageCreateTrueColor(10, 10);
fp = gdTestTempFp();
gdTestAssert(fp);
gdTestAssert(fp!=NULL);
if (!fp) {
exit(2);
}