From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: 32-bit treesit warnings Date: Tue, 17 Sep 2024 20:56:30 -0700 Message-ID: <39586C45-2076-4277-90B3-9BCF73299411@gmail.com> References: <87zfo53dra.fsf.ref@yahoo.com> <87zfo53dra.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16767"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 18 05:57:12 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqloV-0004FU-28 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Sep 2024 05:57:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqlo8-00006W-IR; Tue, 17 Sep 2024 23:56:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqlo6-00006O-PM for emacs-devel@gnu.org; Tue, 17 Sep 2024 23:56:47 -0400 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqlo5-0004PQ-Cp for emacs-devel@gnu.org; Tue, 17 Sep 2024 23:56:46 -0400 Original-Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-20543fdb7acso36929145ad.1 for ; Tue, 17 Sep 2024 20:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726631803; x=1727236603; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6KtYbcF8rFJIQGHNPWjuBsX+MmsfuRO8a4YMMWXPWkc=; b=EMOZ3tE0Py+VuvwWbOAruYIvkoLN5z+KnrJTc3GKn4YOHpcPGux90MrMspcb7mcSqj dfMtGfUY+p5jSkfphzkMovcsGB812s3jGNphNNQCOhiKSYfcxtdK7XBEeXHdoS3ghG+a m5L8fe2o4Jk+PzJQhV1GKAy+cSeehvFDLSt0wjJnZKVq4GHdSVG1qTLwNyO+raUxH9ym IIPiwGJTQjy598WDrsfLmFmjT9xHQZXbyxslzoGyYuvU/AQA7O3ZOqA3mNR53/ra6aaw AKO22jRHbRzFzyEbAmoMKDNvhEkSKJmL4Po/GL+ozmFYGWwaT8XxLvraCsaUSBoff+di OGsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726631803; x=1727236603; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6KtYbcF8rFJIQGHNPWjuBsX+MmsfuRO8a4YMMWXPWkc=; b=KUAIxohbOtIxyJOQT/8j4fLhupbkZsjTxPLV+DjXaqXwRR+rpNS70uS9TkIq4XXqic a+HsbhGL0NfB4ENzK0sIaf7pH10lt2W7QJBs3gwTjonR18E37eQ+FC1ka30R28HrY/Lm GPyZ7ukU2U7rw0v2h3KRJpWKqxy4HxEgzcinePX5UYjL5OXRaC8hRNbRCpDe1Cqg3w4Q udCzwpRKlIgEgMC9UzhVs3d+CxrxFVaitZAYkCz1uOFGthrj7loZT+orw+FGb9hhGq51 akWlTw+I6xkm4U+sncATJs7WJ5SCbiZ9htMz3/tWk1Q1uyAdYspPB0TBqEIOCQnqC4wC pLHg== X-Gm-Message-State: AOJu0YzhcUrR1U9lff4216WD2/ge16b81VFLmulB1gDGNXQ2eawP1pzr s2HotR6J8xqH9DzRHAhqFnqkR6ue7I0xlTb7jPEaGld6YHdq9f0mHi5FkQ== X-Google-Smtp-Source: AGHT+IFBh385097KC61JXQbbYB3vBY7BZ1dtNKD6zQs0DnDABWef82l1Kc0f7GFlttBncS+i1y+aig== X-Received: by 2002:a17:902:ce82:b0:205:2a59:a28c with SMTP id d9443c01a7336-20781b429d8mr245113115ad.1.1726631803269; Tue, 17 Sep 2024 20:56:43 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:6934:42e0:534b:aff5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-207946012besm56621455ad.91.2024.09.17.20.56.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2024 20:56:42 -0700 (PDT) In-Reply-To: <87zfo53dra.fsf@yahoo.com> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=casouri@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323713 Archived-At: > On Sep 17, 2024, at 7:19=E2=80=AFPM, Po Lu wrote: >=20 > This warning has lately started to be emitted during compilations of > 32-bit builds: >=20 > /[...]/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)); >=20 > Will anyone please see to this? >=20 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=