summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortabe <none@none>2013-02-12 13:47:20 +0900
committertabe <none@none>2013-02-12 13:47:20 +0900
commitce46d92674b5ae0ef9bd31018a42ca11a35006ec (patch)
tree6176c8915555ec4084a54c5d17623b1fb2613ef5
parent7f772ee7a77a2cbf5b3fbca4525ee309ae4eaa6f (diff)
downloadlibgd-ce46d92674b5ae0ef9bd31018a42ca11a35006ec.tar.gz
fix -Wunused-parameter
-rw-r--r--src/annotate.c3
-rw-r--r--src/gdft.c24
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"
diff --git a/src/gdft.c b/src/gdft.c
index 81f7a5e..54b0c1c 100644
--- a/src/gdft.c
+++ b/src/gdft.c
@@ -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 */