diff options
| author | Jan D | 2015-04-26 13:55:01 +0200 |
|---|---|---|
| committer | Jan D | 2015-04-26 13:55:01 +0200 |
| commit | f92ac2e82ed199d6f25d2a59508e08addb1150ac (patch) | |
| tree | d7d7756e3dbce10d8f73c27815d815499f78c2bd /src/image.c | |
| parent | 5a094119ce79723108abd90a1fcc33721e964823 (diff) | |
| parent | a40869789fc5502e3d4e393b7c31d78cb7f29aa1 (diff) | |
| download | emacs-f92ac2e82ed199d6f25d2a59508e08addb1150ac.tar.gz emacs-f92ac2e82ed199d6f25d2a59508e08addb1150ac.zip | |
Merge branch 'master' into cairo
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index 78de0ba884e..ffbed747590 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -5063,7 +5063,8 @@ x_build_heuristic_mask (struct frame *f, struct image *img, Lisp_Object how) | |||
| 5063 | if (i == 3 && NILP (how)) | 5063 | if (i == 3 && NILP (how)) |
| 5064 | { | 5064 | { |
| 5065 | char color_name[30]; | 5065 | char color_name[30]; |
| 5066 | sprintf (color_name, "#%04x%04x%04x", rgb[0], rgb[1], rgb[2]); | 5066 | sprintf (color_name, "#%04x%04x%04x", |
| 5067 | rgb[0] + 0u, rgb[1] + 0u, rgb[2] + 0u); | ||
| 5067 | bg = ( | 5068 | bg = ( |
| 5068 | #ifdef HAVE_NTGUI | 5069 | #ifdef HAVE_NTGUI |
| 5069 | 0x00ffffff & /* Filter out palette info. */ | 5070 | 0x00ffffff & /* Filter out palette info. */ |
| @@ -5896,6 +5897,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c) | |||
| 5896 | /* Find out what file to load. */ | 5897 | /* Find out what file to load. */ |
| 5897 | specified_file = image_spec_value (img->spec, QCfile, NULL); | 5898 | specified_file = image_spec_value (img->spec, QCfile, NULL); |
| 5898 | specified_data = image_spec_value (img->spec, QCdata, NULL); | 5899 | specified_data = image_spec_value (img->spec, QCdata, NULL); |
| 5900 | IF_LINT (Lisp_Object volatile specified_data_volatile = specified_data); | ||
| 5899 | 5901 | ||
| 5900 | if (NILP (specified_data)) | 5902 | if (NILP (specified_data)) |
| 5901 | { | 5903 | { |
| @@ -5992,6 +5994,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c) | |||
| 5992 | 5994 | ||
| 5993 | /* Silence a bogus diagnostic; see GCC bug 54561. */ | 5995 | /* Silence a bogus diagnostic; see GCC bug 54561. */ |
| 5994 | IF_LINT (fp = c->fp); | 5996 | IF_LINT (fp = c->fp); |
| 5997 | IF_LINT (specified_data = specified_data_volatile); | ||
| 5995 | 5998 | ||
| 5996 | /* Read image info. */ | 5999 | /* Read image info. */ |
| 5997 | if (!NILP (specified_data)) | 6000 | if (!NILP (specified_data)) |
| @@ -6658,6 +6661,7 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6658 | /* Open the JPEG file. */ | 6661 | /* Open the JPEG file. */ |
| 6659 | specified_file = image_spec_value (img->spec, QCfile, NULL); | 6662 | specified_file = image_spec_value (img->spec, QCfile, NULL); |
| 6660 | specified_data = image_spec_value (img->spec, QCdata, NULL); | 6663 | specified_data = image_spec_value (img->spec, QCdata, NULL); |
| 6664 | IF_LINT (Lisp_Object volatile specified_data_volatile = specified_data); | ||
| 6661 | 6665 | ||
| 6662 | if (NILP (specified_data)) | 6666 | if (NILP (specified_data)) |
| 6663 | { | 6667 | { |
| @@ -6720,6 +6724,9 @@ jpeg_load_body (struct frame *f, struct image *img, | |||
| 6720 | return 0; | 6724 | return 0; |
| 6721 | } | 6725 | } |
| 6722 | 6726 | ||
| 6727 | /* Silence a bogus diagnostic; see GCC bug 54561. */ | ||
| 6728 | IF_LINT (specified_data = specified_data_volatile); | ||
| 6729 | |||
| 6723 | /* Create the JPEG decompression object. Let it read from fp. | 6730 | /* Create the JPEG decompression object. Let it read from fp. |
| 6724 | Read the JPEG image header. */ | 6731 | Read the JPEG image header. */ |
| 6725 | jpeg_CreateDecompress (&mgr->cinfo, JPEG_LIB_VERSION, sizeof *&mgr->cinfo); | 6732 | jpeg_CreateDecompress (&mgr->cinfo, JPEG_LIB_VERSION, sizeof *&mgr->cinfo); |