unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* json.c: Warning during compilation
@ 2024-04-02 21:19 Arash Esbati
  2024-04-03  8:21 ` Mattias Engdegård
  0 siblings, 1 reply; 2+ messages in thread
From: Arash Esbati @ 2024-04-02 21:19 UTC (permalink / raw)
  To: Mattias Engdegård; +Cc: emacs-devel

Hi Mattias,

when building Emacs (5eedf41b31) on macOS, I get this warning:

  json.c:1418:14: warning: variable 'number_of_elements' set but not used
  [-Wunused-but-set-variable]
        size_t number_of_elements = 0;
               ^

This is with:

  $ gcc --version
  Apple clang version 15.0.0 (clang-1500.3.9.4)
  Target: arm64-apple-darwin23.4.0
  Thread model: posix
  InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Best, Arash



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: json.c: Warning during compilation
  2024-04-02 21:19 json.c: Warning during compilation Arash Esbati
@ 2024-04-03  8:21 ` Mattias Engdegård
  0 siblings, 0 replies; 2+ messages in thread
From: Mattias Engdegård @ 2024-04-03  8:21 UTC (permalink / raw)
  To: Arash Esbati; +Cc: emacs-devel

2 apr. 2024 kl. 23.19 skrev Arash Esbati <arash@gnu.org>:

>  json.c:1418:14: warning: variable 'number_of_elements' set but not used
>  [-Wunused-but-set-variable]
>        size_t number_of_elements = 0;
>               ^

Fixed, thank you!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-03  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 21:19 json.c: Warning during compilation Arash Esbati
2024-04-03  8:21 ` Mattias Engdegård

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).