GNU bug report logs - #29567
[PATCH] src/xterm.c: use 'thickness' only in a case of !USE_CAIRO

Previous Next

Package: emacs;

Reported by: Alexander Kuleshov <kuleshovmail <at> gmail.com>

Date: Mon, 4 Dec 2017 18:13:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29567 in the body.
You can then email your comments to 29567 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29567; Package emacs. (Mon, 04 Dec 2017 18:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexander Kuleshov <kuleshovmail <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Dec 2017 18:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexander Kuleshov <kuleshovmail <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] src/xterm.c: use 'thickness' only in a case of !USE_CAIRO
Date: Tue, 5 Dec 2017 00:11:47 +0600
[Message part 1 (text/plain, inline)]
Hello,

I've attached simple patch with moving of the `thickness` var
(from the x_draw_underwave() src/xterm.c) a little bit below, to get rid of:

xterm.c:3520:61: error: unused variable 'thickness' [-Werror,-Wunused-variable]
  int wave_height = 3 * scale_y, wave_length = 2 * scale_x, thickness = scale_y;

as this variable is used only in a case of !USE_CAIRO

Thank you.
[0001-Move-thickness-assignment-where-it-is-used.patch (text/x-patch, attachment)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 04 Dec 2017 20:06:02 GMT) Full text and rfc822 format available.

Notification sent to Alexander Kuleshov <kuleshovmail <at> gmail.com>:
bug acknowledged by developer. (Mon, 04 Dec 2017 20:06:03 GMT) Full text and rfc822 format available.

Message #10 received at 29567-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alexander Kuleshov <kuleshovmail <at> gmail.com>
Cc: 29567-done <at> debbugs.gnu.org
Subject: Re: bug#29567: [PATCH] src/xterm.c: use 'thickness' only in a case of
 !USE_CAIRO
Date: Mon, 04 Dec 2017 22:05:20 +0200
> From: Alexander Kuleshov <kuleshovmail <at> gmail.com>
> Date: Tue, 5 Dec 2017 00:11:47 +0600
> 
> I've attached simple patch with moving of the `thickness` var
> (from the x_draw_underwave() src/xterm.c) a little bit below, to get rid of:
> 
> xterm.c:3520:61: error: unused variable 'thickness' [-Werror,-Wunused-variable]
>   int wave_height = 3 * scale_y, wave_length = 2 * scale_x, thickness = scale_y;
> 
> as this variable is used only in a case of !USE_CAIRO

Thanks.  Did the patched source compile for you in the !USE_CAIRO
case?  Because 'thickness' needs to be declared as 'int' before it can
be used.

So I installed a slightly different change to avoid the warning.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29567; Package emacs. (Tue, 05 Dec 2017 06:55:02 GMT) Full text and rfc822 format available.

Message #13 received at 29567-done <at> debbugs.gnu.org (full text, mbox):

From: Alexander Kuleshov <kuleshovmail <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 29567-done <at> debbugs.gnu.org
Subject: Re: bug#29567: [PATCH] src/xterm.c: use 'thickness' only in a case of
 !USE_CAIRO
Date: Tue, 5 Dec 2017 12:53:38 +0600
On Tue, Dec 5, 2017 at 2:05 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Alexander Kuleshov <kuleshovmail <at> gmail.com>
>> Date: Tue, 5 Dec 2017 00:11:47 +0600
>>
>> I've attached simple patch with moving of the `thickness` var
>> (from the x_draw_underwave() src/xterm.c) a little bit below, to get rid of:
>>
>> xterm.c:3520:61: error: unused variable 'thickness' [-Werror,-Wunused-variable]
>>   int wave_height = 3 * scale_y, wave_length = 2 * scale_x, thickness = scale_y;
>>
>> as this variable is used only in a case of !USE_CAIRO
>
> Thanks.  Did the patched source compile for you in the !USE_CAIRO
> case?  Because 'thickness' needs to be declared as 'int' before it can
> be used.
>
> So I installed a slightly different change to avoid the warning.

Ah yes, yes, it should be defined before.

Thank you.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Jan 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.