From: Lars Ingebrigtsen Date: Wed, 8 Dec 2021 00:52:39 +0000 (+0100) Subject: Pacify svg_load_image compiler warning X-Git-Tag: emacs-29.0.90~3610^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d7f3d98dc0380d62ce1b1f5d051d25459134a9c;p=emacs.git Pacify svg_load_image compiler warning * src/image.c (svg_load_image): Fix compiler warning from gcc (Debian 11.2.0-10). --- diff --git a/src/image.c b/src/image.c index cd0f3f697f8..49b14c49154 100644 --- a/src/image.c +++ b/src/image.c @@ -10456,7 +10456,7 @@ svg_load_image (struct frame *f, struct image *img, char *contents, /* Get the image dimensions. */ #if LIBRSVG_CHECK_VERSION (2, 46, 0) - gdouble gviewbox_width, gviewbox_height; + gdouble gviewbox_width = 0, gviewbox_height = 0; gboolean has_viewbox = FALSE; # if LIBRSVG_CHECK_VERSION (2, 52, 1) has_viewbox = rsvg_handle_get_intrinsic_size_in_pixels (rsvg_handle,