unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: emacs-devel@gnu.org
Cc: Po Lu <luangruo@yahoo.com>
Subject: Re: master 452f46d366 2/2: Allow fractional values of `polling-period'
Date: Fri, 21 Jan 2022 15:44:37 +0200	[thread overview]
Message-ID: <87iludw6d6.fsf@tcd.ie> (raw)
In-Reply-To: <20220121011929.64D74C0DA30@vcs2.savannah.gnu.org> (Po Lu's message of "Thu, 20 Jan 2022 20:19:29 -0500 (EST)")

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

Po Lu [2022-01-20 20:19 -0500] wrote:

> branch: master
> commit 452f46d3665e1bfab93ec14003484ce57b636471
> Author: Po Lu <luangruo@yahoo.com>
> Commit: Po Lu <luangruo@yahoo.com>
>
>     Allow fractional values of `polling-period'

I believe this gave rise to the following build error here:

keyboard.c: In function ‘syms_of_keyboard’:
keyboard.c:12085:3: error: ‘poll_timer_time’ undeclared (first use in this function)
12085 |   poll_timer_time = Qnil;
      |   ^~~~~~~~~~~~~~~

Is this the right band-aid?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-initialization-of-poll_timer_time.patch --]
[-- Type: text/x-diff, Size: 887 bytes --]

From 1ca6928c843fcbbaa35a7a947f905ca287c5c2fb Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <contovob@tcd.ie>
Date: Fri, 21 Jan 2022 15:26:57 +0200
Subject: [PATCH] Fix initialization of poll_timer_time

* src/keyboard.c (syms_of_keyboard): Variable poll_timer_time is
declared only under POLL_FOR_INPUT, so guard its initialization
accordingly.
---
 src/keyboard.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/keyboard.c b/src/keyboard.c
index 6f1614a7df..a18664f78a 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -12082,8 +12082,10 @@ syms_of_keyboard (void)
   help_form_saved_window_configs = Qnil;
   staticpro (&help_form_saved_window_configs);
 
+#ifdef POLL_FOR_INPUT
   poll_timer_time = Qnil;
   staticpro (&poll_timer_time);
+#endif /* POLL_FOR_INPUT */
 
   defsubr (&Scurrent_idle_time);
   defsubr (&Sevent_symbol_parse_modifiers);
-- 
2.34.1


[-- Attachment #3: Type: text/plain, Size: 20 bytes --]


Thanks,

-- 
Basil

       reply	other threads:[~2022-01-21 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <164272796883.6971.14489943533147555110@vcs2.savannah.gnu.org>
     [not found] ` <20220121011929.64D74C0DA30@vcs2.savannah.gnu.org>
2022-01-21 13:44   ` Basil L. Contovounesios [this message]
2022-01-21 13:49     ` master 452f46d366 2/2: Allow fractional values of `polling-period' Po Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iludw6d6.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).