Gilles Espinasse avatar 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>;

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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.