Commits

Takeshi Abe  committed b9ff2c3

silence -Wunused-variable

  • Participants
  • Parent commits 29a6d2a

Comments (0)

Files changed (2)

File tests/gdtest/gdtest.c

 
 void gdSilence(int priority, const char *format, va_list args)
 {
-	return;
+	(void)priority;
+	(void)format;
+	(void)args;
 }
 
 gdImagePtr gdTestImageFromPng(const char *filename)

File tests/jpeg/jpeg_read.c

 
 int main()
 {
-	gdImagePtr im;
-	FILE *fp;
-	char path[1024];
-
 #if defined(JPEG_LIB_VERSION_MAJOR) && JPEG_LIB_VERSION_MAJOR >= 8
 	printf("skip, JPEG Major version too high (%i)\n", JPEG_LIB_VERSION_MAJOR);
 	return 0;
 #else
+	gdImagePtr im;
+	FILE *fp;
+	char path[1024];
+
 	snprintf(path, sizeof(path)-1, "%s/jpeg/conv_test.jpeg", GDTEST_TOP_DIR);
 	fp = fopen(path, "rb");
 	if (!fp) {