Commits

Gilles Espinasse committed a82781c

libgd: fix unitialized warnings during make check (fixes #65)

gifanimtest.c: In function 'main':
gifanimtest.c:7: warning: unused parameter 'argc'
gifanimtest.c:7: warning: unused parameter 'argv'

gd_color_map_test.c: In function 'main':
gd_color_map_test.c:10: warning: unused parameter 'argc'
gd_color_map_test.c:10: warning: unused parameter 'argv'

circletexttest.c: In function 'main':
circletexttest.c:8: warning: unused parameter 'argc'
circletexttest.c:8: warning: unused parameter 'argv'

fontsizetest.c: In function 'main':
fontsizetest.c:79: warning: unused parameter 'argc'
fontsizetest.c:79: warning: unused parameter 'argv'

fontwheeltest.c: In function 'main':
fontwheeltest.c:116: warning: unused parameter 'argc'
fontwheeltest.c:116: warning: unused parameter 'argv'

testtr.c: In function 'main':
testtr.c:12: warning: unused parameter 'argc'
testtr.c:12: warning: unused parameter 'argv'

Only one unused variable 'in' remain because I am lazy to add __attribute__((unused)) when supported.

Signed-off-by: Gilles Espinasse <g.esp@free.fr>

  • Participants
  • Parent commits 255af40

Comments (0)

Files changed (6)

src/circletexttest.c

 #include <stdio.h>
 #include "gd.h"
 
-int main(int argc, char *argv[])
+int main(void)
 {
 	/* 2.0.22: can't depend on PNG either  */
 #ifndef HAVE_LIBPNG

src/fontsizetest.c

 }
 
 int
-main (int argc, char **argv)
+main(void)
 {
 
 #if defined(HAVE_LIBPNG)

src/fontwheeltest.c

 }
 
 int
-main (int argc, char **argv)
+main(void)
 {
 
 #if defined(HAVE_LIBPNG)

src/gd_color_map_test.c

 #include "gd_color_map.h"
 
 int
-main(int argc, char *argv[])
+main(void)
 {
 	int r, g, b;
 	int i;

src/gifanimtest.c

 
 #include "gd.h"
 
-int main (int argc, char *argv[])
+int main(void)
 {
 	gdImagePtr im;
 	gdImagePtr last, cim;
 #define TRUE (!FALSE)
 
 int
-main (int argc, char *argv[])
+main(void)
 {
 #ifdef HAVE_LIBFREETYPE
 	FILE *out;