* 32-bit treesit warnings [not found] <87zfo53dra.fsf.ref@yahoo.com> @ 2024-09-18 2:19 ` Po Lu 2024-09-18 3:56 ` Yuan Fu 0 siblings, 1 reply; 2+ messages in thread From: Po Lu @ 2024-09-18 2:19 UTC (permalink / raw) To: emacs-devel This warning has lately started to be emitted during compilations of 32-bit builds: /[...]/emacs/src/treesit.c:506:14: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] buf_name, BUF_BEG (buf), ^~~~~~~~~~~~~ /[...]/emacs/src/treesit.c:507:4: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); ^~~~~~~~~~~~~~ /[...]/emacs/src/treesit.c:507:20: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); ^~~~~~~~~~~~ /[...]/emacs/src/treesit.c:507:34: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); Will anyone please see to this? ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 32-bit treesit warnings 2024-09-18 2:19 ` 32-bit treesit warnings Po Lu @ 2024-09-18 3:56 ` Yuan Fu 0 siblings, 0 replies; 2+ messages in thread From: Yuan Fu @ 2024-09-18 3:56 UTC (permalink / raw) To: Po Lu; +Cc: emacs-devel > On Sep 17, 2024, at 7:19 PM, Po Lu <luangruo@yahoo.com> wrote: > > This warning has lately started to be emitted during compilations of > 32-bit builds: > > /[...]/emacs/src/treesit.c:506:14: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] > buf_name, BUF_BEG (buf), > ^~~~~~~~~~~~~ > /[...]/emacs/src/treesit.c:507:4: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] > BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); > ^~~~~~~~~~~~~~ > /[...]/emacs/src/treesit.c:507:20: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] > BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); > ^~~~~~~~~~~~ > /[...]/emacs/src/treesit.c:507:34: warning: format specifies type 'long' but the argument has type 'ptrdiff_t' (aka 'int') [-Wformat] > BUF_BEGV (buf), BUF_ZV (buf), BUF_Z (buf)); > > Will anyone please see to this? > I fixed the issue, thanks for the report! Also feel free to tag me if anything in treesit.c goes wrong so I can fix it ASAP. Yuan ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-18 3:56 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <87zfo53dra.fsf.ref@yahoo.com> 2024-09-18 2:19 ` 32-bit treesit warnings Po Lu 2024-09-18 3:56 ` Yuan Fu
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).