From 8dc95e3598be0c20f1a192842bd2966ea342b255 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 23 Aug 2020 17:06:02 +0100 Subject: [PATCH] Silence compiler warning (bug#40845) * src/image.c (lookup_image): Don't allow face to be NULL. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index e8e3388c6bb..4933b619f66 100644 --- a/src/image.c +++ b/src/image.c @@ -2335,7 +2335,7 @@ lookup_image (struct frame *f, Lisp_Object spec, int face_id) EMACS_UINT hash; struct face *face = (face_id >= 0) ? FACE_FROM_ID (f, face_id) - : FACE_FROM_ID_OR_NULL (f, DEFAULT_FACE_ID); + : FACE_FROM_ID (f, DEFAULT_FACE_ID); unsigned long foreground = FACE_COLOR_TO_PIXEL (face->foreground, f); unsigned long background = FACE_COLOR_TO_PIXEL (face->background, f); -- 2.39.2