fix warning
parent
c80a7bf3ff
commit
8074c82046
|
@ -19,6 +19,7 @@ static int error_handler_called = 0;
|
||||||
|
|
||||||
static void error_handler(int priority, const char *format, va_list args)
|
static void error_handler(int priority, const char *format, va_list args)
|
||||||
{
|
{
|
||||||
|
ARG_NOT_USED(args);
|
||||||
if (!strcmp(format, MSG)) {
|
if (!strcmp(format, MSG)) {
|
||||||
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
|
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
|
||||||
error_handler_called = 1;
|
error_handler_called = 1;
|
||||||
|
|
|
@ -19,6 +19,7 @@ static int error_handler_called = 0;
|
||||||
|
|
||||||
static void error_handler(int priority, const char *format, va_list args)
|
static void error_handler(int priority, const char *format, va_list args)
|
||||||
{
|
{
|
||||||
|
ARG_NOT_USED(args);
|
||||||
if (!strcmp(format, MSG)) {
|
if (!strcmp(format, MSG)) {
|
||||||
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
|
gdTestAssertMsg(priority == GD_WARNING, "expected priority %d, but got %d", GD_WARNING, priority);
|
||||||
error_handler_called = 1;
|
error_handler_called = 1;
|
||||||
|
@ -34,7 +35,7 @@ int main()
|
||||||
|
|
||||||
im = gdImageCreateTrueColor(10, 10);
|
im = gdImageCreateTrueColor(10, 10);
|
||||||
fp = gdTestTempFp();
|
fp = gdTestTempFp();
|
||||||
gdTestAssert(fp);
|
gdTestAssert(fp!=NULL);
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue