diff options
author | tabe <none@none> | 2013-02-12 13:47:20 +0900 |
---|---|---|
committer | tabe <none@none> | 2013-02-12 13:47:20 +0900 |
commit | ce46d92674b5ae0ef9bd31018a42ca11a35006ec (patch) | |
tree | 6176c8915555ec4084a54c5d17623b1fb2613ef5 | |
parent | 7f772ee7a77a2cbf5b3fbca4525ee309ae4eaa6f (diff) | |
download | libgd-ce46d92674b5ae0ef9bd31018a42ca11a35006ec.tar.gz |
fix -Wunused-parameter
-rw-r--r-- | src/annotate.c | 3 | ||||
-rw-r--r-- | src/gdft.c | 24 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/annotate.c b/src/annotate.c index 02ecb8e..b17d681 100644 --- a/src/annotate.c +++ b/src/annotate.c @@ -17,6 +17,9 @@ enum { left, center, right }; int main(int argc, char *argv[]) { #ifndef HAVE_LIBFREETYPE + (void)argc; + (void)argv; + /* 2.0.12 */ fprintf (stderr, "annotate is not useful without freetype.\n" "Install freetype, then './configure; make clean; make install'\n" @@ -92,12 +92,33 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImage * im, int *brect, int fg, char *f double ptsize, double angle, int x, int y, char *string, gdFTStringExtraPtr strex) { + (void)im; + (void)brect; + (void)fg; + (void)fontlist; + (void)ptsize; + (void)angle; + (void)x; + (void)y; + (void)string; + (void)strex; + return "libgd was not built with FreeType font support\n"; } BGD_DECLARE(char *) gdImageStringFT (gdImage * im, int *brect, int fg, char *fontlist, double ptsize, double angle, int x, int y, char *string) { + (void)im; + (void)brect; + (void)fg; + (void)fontlist; + (void)ptsize; + (void)angle; + (void)x; + (void)y; + (void)string; + return "libgd was not built with FreeType font support\n"; } #else @@ -105,6 +126,9 @@ BGD_DECLARE(char *) gdImageStringFT (gdImage * im, int *brect, int fg, char *fon #ifndef HAVE_LIBFONTCONFIG static char * font_pattern(char **fontpath, char *fontpattern) { + (void)fontpath; + (void)fontpattern; + return "libgd was not built with FontConfig support\n"; } #endif /* HAVE_LIBFONTCONFIG */ |