diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/image.c b/src/image.c index bfbdfbc86b2..d558540c6e7 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -6262,9 +6262,6 @@ struct my_jpeg_error_mgr | |||
| 6262 | MY_JPEG_INVALID_IMAGE_SIZE, | 6262 | MY_JPEG_INVALID_IMAGE_SIZE, |
| 6263 | MY_JPEG_CANNOT_CREATE_X | 6263 | MY_JPEG_CANNOT_CREATE_X |
| 6264 | } failure_code; | 6264 | } failure_code; |
| 6265 | #ifdef lint | ||
| 6266 | FILE *fp; | ||
| 6267 | #endif | ||
| 6268 | }; | 6265 | }; |
| 6269 | 6266 | ||
| 6270 | 6267 | ||
| @@ -6479,7 +6476,8 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6479 | { | 6476 | { |
| 6480 | Lisp_Object file, specified_file; | 6477 | Lisp_Object file, specified_file; |
| 6481 | Lisp_Object specified_data; | 6478 | Lisp_Object specified_data; |
| 6482 | FILE *fp = NULL; | 6479 | /* The 'volatile' silences a bogus diagnostic; see GCC bug 54561. */ |
| 6480 | FILE * IF_LINT (volatile) fp = NULL; | ||
| 6483 | JSAMPARRAY buffer; | 6481 | JSAMPARRAY buffer; |
| 6484 | int row_stride, x, y; | 6482 | int row_stride, x, y; |
| 6485 | XImagePtr ximg = NULL; | 6483 | XImagePtr ximg = NULL; |
| @@ -6512,8 +6510,6 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6512 | return 0; | 6510 | return 0; |
| 6513 | } | 6511 | } |
| 6514 | 6512 | ||
| 6515 | IF_LINT (mgr->fp = fp); | ||
| 6516 | |||
| 6517 | /* Customize libjpeg's error handling to call my_error_exit when an | 6513 | /* Customize libjpeg's error handling to call my_error_exit when an |
| 6518 | error is detected. This function will perform a longjmp. */ | 6514 | error is detected. This function will perform a longjmp. */ |
| 6519 | mgr->cinfo.err = fn_jpeg_std_error (&mgr->pub); | 6515 | mgr->cinfo.err = fn_jpeg_std_error (&mgr->pub); |
| @@ -6552,9 +6548,6 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6552 | return 0; | 6548 | return 0; |
| 6553 | } | 6549 | } |
| 6554 | 6550 | ||
| 6555 | /* Silence a bogus diagnostic; see GCC bug 54561. */ | ||
| 6556 | IF_LINT (fp = mgr->fp); | ||
| 6557 | |||
| 6558 | /* Create the JPEG decompression object. Let it read from fp. | 6551 | /* Create the JPEG decompression object. Let it read from fp. |
| 6559 | Read the JPEG image header. */ | 6552 | Read the JPEG image header. */ |
| 6560 | fn_jpeg_CreateDecompress (&mgr->cinfo, JPEG_LIB_VERSION, sizeof *&mgr->cinfo); | 6553 | fn_jpeg_CreateDecompress (&mgr->cinfo, JPEG_LIB_VERSION, sizeof *&mgr->cinfo); |