emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 37454de0c8 1/2: Pacify --without-x unused function warning


From: Basil L. Contovounesios
Subject: emacs-29 37454de0c8 1/2: Pacify --without-x unused function warning
Date: Wed, 25 Jan 2023 09:33:01 -0500 (EST)

branch: emacs-29
commit 37454de0c8f07584a1604d54acc97e4bc1c9ddfc
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    Pacify --without-x unused function warning
    
    * src/xfaces.c (font_maybe_unset_attribute): Move definition...
    [HAVE_WINDOW_SYSTEM] (font_maybe_unset_attribute): ...to here, since
    the function is used only when we HAVE_WINDOW_SYSTEM (bug#61049).
---
 src/xfaces.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfaces.c b/src/xfaces.c
index 68f7cc493c..35b7915480 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6012,7 +6012,6 @@ realize_non_ascii_face (struct frame *f, Lisp_Object 
font_object,
 
   return face;
 }
-#endif /* HAVE_WINDOW_SYSTEM */
 
 /* Remove the attribute at INDEX from the font object if SYMBOL
    appears in `font-fallback-ignored-attributes'.  */
@@ -6031,6 +6030,7 @@ font_maybe_unset_attribute (Lisp_Object font_object,
        ASET (font_object, index, Qnil);
     }
 }
+#endif /* HAVE_WINDOW_SYSTEM */
 
 /* Realize the fully-specified face with attributes ATTRS in face
    cache CACHE for ASCII characters.  Do it for GUI frame CACHE->f.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]