emacs-diffs
[Top][All Lists]
Advanced

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

master 38dfe9d2f7: Fix unused function warning on X


From: Po Lu
Subject: master 38dfe9d2f7: Fix unused function warning on X
Date: Tue, 17 May 2022 06:18:49 -0400 (EDT)

branch: master
commit 38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix unused function warning on X
    
    * src/xsettings.c (xg_settings_key_valid_p): Surround with
    HAVE_PGTK and HAVE_GSETTINGS.
---
 src/xsettings.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xsettings.c b/src/xsettings.c
index 45341d8ebd..c29a844e0a 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -230,6 +230,8 @@ static cairo_font_options_t *font_options;
 
 static GSettings *gsettings_client;
 
+#if defined HAVE_PGTK && defined HAVE_GSETTINGS
+
 static bool
 xg_settings_key_valid_p (GSettings *settings, const char *key)
 {
@@ -253,6 +255,8 @@ xg_settings_key_valid_p (GSettings *settings, const char 
*key)
 #endif
 }
 
+#endif
+
 #ifdef HAVE_PGTK
 /* Store an event for re-rendering of the fonts.  */
 static void



reply via email to

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