diff options
| author | Po Lu | 2022-05-17 18:18:32 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-17 18:18:32 +0800 |
| commit | 38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4 (patch) | |
| tree | 2a0375ad63a0ba178fcf4d8b0511490e32af65ed | |
| parent | 1a6a4614ceb9d868ccef023973eb7d28aae85b97 (diff) | |
| download | emacs-38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4.tar.gz emacs-38dfe9d2f7aea4ecfe06ec54fef6f5b5fe1f72e4.zip | |
Fix unused function warning on X
* src/xsettings.c (xg_settings_key_valid_p): Surround with
HAVE_PGTK and HAVE_GSETTINGS.
| -rw-r--r-- | src/xsettings.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xsettings.c b/src/xsettings.c index 45341d8ebd5..c29a844e0a8 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -230,6 +230,8 @@ static cairo_font_options_t *font_options; | |||
| 230 | 230 | ||
| 231 | static GSettings *gsettings_client; | 231 | static GSettings *gsettings_client; |
| 232 | 232 | ||
| 233 | #if defined HAVE_PGTK && defined HAVE_GSETTINGS | ||
| 234 | |||
| 233 | static bool | 235 | static bool |
| 234 | xg_settings_key_valid_p (GSettings *settings, const char *key) | 236 | xg_settings_key_valid_p (GSettings *settings, const char *key) |
| 235 | { | 237 | { |
| @@ -253,6 +255,8 @@ xg_settings_key_valid_p (GSettings *settings, const char *key) | |||
| 253 | #endif | 255 | #endif |
| 254 | } | 256 | } |
| 255 | 257 | ||
| 258 | #endif | ||
| 259 | |||
| 256 | #ifdef HAVE_PGTK | 260 | #ifdef HAVE_PGTK |
| 257 | /* Store an event for re-rendering of the fonts. */ | 261 | /* Store an event for re-rendering of the fonts. */ |
| 258 | static void | 262 | static void |