diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-05-07 14:51:27 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-05-07 14:51:27 +0900 |
commit | b9ff2c3661a07c45916c0222b30b00b079f0a92e (patch) | |
tree | 8a68102f389a67f2883617821479503ad18db256 /tests/jpeg | |
parent | 29a6d2ae04cd998b45cc2e96aa55037744506566 (diff) | |
download | libgd-b9ff2c3661a07c45916c0222b30b00b079f0a92e.tar.gz |
silence -Wunused-variable
Diffstat (limited to 'tests/jpeg')
-rw-r--r-- | tests/jpeg/jpeg_read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/jpeg/jpeg_read.c b/tests/jpeg/jpeg_read.c index 26edb55..64130ce 100644 --- a/tests/jpeg/jpeg_read.c +++ b/tests/jpeg/jpeg_read.c @@ -11,14 +11,14 @@ 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) { |