GNU bug report logs - #80044
31.0.50; xwidget.c warning about unused variable

Previous Next

Package: emacs;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Sat, 20 Dec 2025 22:38:03 UTC

Severity: normal

Found in version 31.0.50

Done: Arash Esbati <arash <at> gnu.org>

To reply to this bug, email your comments to 80044 AT debbugs.gnu.org.
There is no need to reopen the bug first.

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#80044; Package emacs. (Sat, 20 Dec 2025 22:38:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 20 Dec 2025 22:38:04 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; xwidget.c warning about unused variable
Date: Sat, 20 Dec 2025 23:37:12 +0100
Hi all,

when building the latest master on macOS with --with-xwidgets, I get
this warning:

--8<---------------cut here---------------start------------->8---
xwidget.c:492:17: warning: variable 'f' set but not used [-Wunused-but-set-variable]
  492 |   struct frame *f = NULL;
      |                 ^
--8<---------------cut here---------------end--------------->8---

This is with:

$ gcc --version
Apple clang version 17.0.0 (clang-1700.6.3.2)
Target: arm64-apple-darwin24.6.0
Thread model: posix

Best, Arash

In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.6.0, NS
 appkit-2575.70 Version 15.7.3 (Build 24G419)) of 2025-12-20
Repository revision: bc30310f8753ee35c77f7e70ba6707f066475aba
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.7.3

Configured using:
 'configure --with-ns --with-threads --with-modules
 --with-native-compilation --without-compress-install --without-harfbuzz
 --without-mailutils --with-xwidgets --without-pop 'CFLAGS=-O2 -g0 -pipe
 ' 'CPPFLAGS=-I/opt/homebrew/opt/gcc/include
 -I/opt/homebrew/opt/libgccjit/include -I/opt/homebrew/opt/gmp/include
 -I/opt/homebrew/opt/libxml2/include '
 'LDFLAGS=-L/opt/homebrew/opt/gcc/lib/gcc/current
 -L/opt/homebrew/opt/gmp/lib -L/opt/homebrew/opt/libxml2/lib ''




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80044; Package emacs. (Sun, 21 Dec 2025 06:19:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash Esbati <arash <at> gnu.org>
Cc: 80044 <at> debbugs.gnu.org
Subject: Re: bug#80044: 31.0.50; xwidget.c warning about unused variable
Date: Sun, 21 Dec 2025 08:18:42 +0200
> From: Arash Esbati <arash <at> gnu.org>
> Date: Sat, 20 Dec 2025 23:37:12 +0100
> 
> Hi all,
> 
> when building the latest master on macOS with --with-xwidgets, I get
> this warning:
> 
> --8<---------------cut here---------------start------------->8---
> xwidget.c:492:17: warning: variable 'f' set but not used [-Wunused-but-set-variable]
>   492 |   struct frame *f = NULL;
>       |                 ^
> --8<---------------cut here---------------end--------------->8---

Thanks, I tried to fix that now.




Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Sun, 21 Dec 2025 07:59:02 GMT) Full text and rfc822 format available.

Notification sent to Arash Esbati <arash <at> gnu.org>:
bug acknowledged by developer. (Sun, 21 Dec 2025 07:59:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 80044-done <at> debbugs.gnu.org
Subject: Re: bug#80044: 31.0.50; xwidget.c warning about unused variable
Date: Sun, 21 Dec 2025 08:57:54 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks, I tried to fix that now.

Many thanks, the warning is gone.  Closing.

Best, Arash




This bug report was last modified 7 days ago.

Previous Next


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