From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: [Patch] Two typos captured by clang on OpenBSD Date: Tue, 21 Jun 2022 16:59:43 +0200 Message-ID: <878rpqjc4g.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) To: "emacs-devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 21 17:07:55 2022 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 1o3fTu-00033m-FZ for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Jun 2022 17:07:54 +0200 Original-Received: from localhost ([::1]:60098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3fTt-0002vX-53 for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Jun 2022 11:07:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3fM5-0001IC-8i for emacs-devel@gnu.org; Tue, 21 Jun 2022 10:59:49 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:8929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3fM2-00015r-Ub for emacs-devel@gnu.org; Tue, 21 Jun 2022 10:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=hSvNO23yrmh9v2Wk Lj8DoxmJYRXhu+CpX3MiosbN0Gk=; h=date:subject:to:from; d=ledu-giraud.fr; b=d8/ZB1Wq0q4nnn4EQW16Q7SIj87O99nYCU+tXrLkpOhuuYaX8r iGNyfPBlnWkp0BaaGPDYT5pc5ryVQxfblCaTD1i8dhQdE8hl91iXDrC9pq1pUAUmAclyq4 w7ENeEJ63iqEfdJZ8/eR2uk1t14ckkqfIYJoY0v4bk0Az8a6pLvs1HXEHEcZOyDu0pX4XH eGpYxOzvxOe+G1KVtO/TZOfh4oLj46SYJSdXWtD3MGoUe8A/exF+vF1fzMSDiRGxhURewF 00FK/ABfoBmvhxDMmY5qZn4/ExNkRAYlvWyDZTTwGUbGpOpMw+n5LB5jL2t3SBAo/JGjBz 31HW7ETe8Owg== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 87a5641b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 21 Jun 2022 16:59:43 +0200 (CEST) Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:291498 Archived-At: --=-=-= Content-Type: text/plain Hi, There is no functional in this patch. It just muffles 2 warnings. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Two-typos-captured-on-OpenBSD-clang.patch >From 906ead58895ddbf2e5c6656fe63f776cdc055ced Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Tue, 21 Jun 2022 16:52:52 +0200 Subject: [PATCH] Two typos captured on OpenBSD/clang ; * src/kqueue.c (kqueue_compare_dir_list): Indent typo. ; * src/sysdep.c (system_process_attributes): Unused variable on OpenBSD. --- src/kqueue.c | 4 ++-- src/sysdep.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kqueue.c b/src/kqueue.c index c3c4631784..99a9434cc2 100644 --- a/src/kqueue.c +++ b/src/kqueue.c @@ -159,8 +159,8 @@ kqueue_compare_dir_list (Lisp_Object watch_object) (watch_object, Fcons (Qwrite, Qnil), XCAR (XCDR (old_entry)), Qnil); /* Status change time has been changed, the file attributes have changed. */ - if (NILP (Fequal (Fnth (make_fixnum (3), old_entry), - Fnth (make_fixnum (3), new_entry)))) + if (NILP (Fequal (Fnth (make_fixnum (3), old_entry), + Fnth (make_fixnum (3), new_entry)))) kqueue_generate_event (watch_object, Fcons (Qattrib, Qnil), XCAR (XCDR (old_entry)), Qnil); diff --git a/src/sysdep.c b/src/sysdep.c index 95295e7e67..28ab8189c3 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3869,7 +3869,7 @@ system_process_attributes (Lisp_Object pid) Lisp_Object system_process_attributes (Lisp_Object pid) { - int proc_id, nentries, fscale, i; + int proc_id, fscale, i; int pagesize = getpagesize (); int mib[6]; size_t len; -- 2.36.1 --=-=-= Content-Type: text/plain -- Manuel Giraud --=-=-=--