From unknown Sat Aug 09 22:09:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58291 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58291@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16648972015904 (code B ref -1); Tue, 04 Oct 2022 15:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 15:26:41 +0000 Received: from localhost ([127.0.0.1]:54963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofjof-0001XA-6U for submit@debbugs.gnu.org; Tue, 04 Oct 2022 11:26:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:35550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofjod-0001X2-LG for submit@debbugs.gnu.org; Tue, 04 Oct 2022 11:26:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofjod-000407-2P for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:26:39 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:35639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofjoa-0004iI-HE for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:26:38 -0400 Received: by mail-ed1-x529.google.com with SMTP id s2so8732732edd.2 for ; Tue, 04 Oct 2022 08:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date; bh=AvAQM82Q2BXCYZ0/8JMvqN5ZbCGxF22gvSGamiqol8s=; b=CF4zA17VM1Md0oZwR/3utaqmCjhmCcOWir32ZTPEcrI/t2Xzx984mCXzJApFZPz4UM evj1LZQfp2HlXauDRcWa+TSe8URvoppALuWzIT5hhjb7mmfSZG+Vn6N+tYpXDvGpnK9a eMyWyPKw2DqiPZNKWRxaNXs27Gh9UCfXexDR+BztNvcMhPcAtfCqQ58P+9/CMxPmoj1d 7loMfv9LMTb8LAUY6LBMJh8JBQ/B/7iHNPuIkkBy2xjJwDi/LB88eUq/GfhgirjCpltm YIzLUgbRM3T7jQTX0tbo//3ebjMT10RTciOKzlFRFdXg7HRoIg5Lj18LiwSnuloyikdk KFVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date; bh=AvAQM82Q2BXCYZ0/8JMvqN5ZbCGxF22gvSGamiqol8s=; b=4BJlUSIBV92Rx0q1TQszNTcwXHNlrlcY1i+GWnRkkZR2X/yJzO3f1PshOiwu9vfg7w e79mvHUH1siiNUUwvfvK6J//fxDQ1nKDVqWBGGwOmA2aDlBbFIadY5d8dUikn2EKgaSY Wf4SgPz6HADP7q2IvYPhBujA9Ul31rJCH037DalUvrffVZ9kPZ3kTVMEBTXNASMg2Bb2 Qs9G8g3qdzJ4pjk6fMgR66/RuQ3DGs8VX3ILoOzmIY3JrhY4FD0embpROyeZBeMONPJ9 iL95qKLErX+Ry2KrUUIouOHtwrAl2GjGxbJ2+q/CFyMvsAcpL613zcTAWdFJ6IPSGSxL Q8KA== X-Gm-Message-State: ACrzQf0rPV3lcy8xXEtrK5dhiMXx6xo7s3TYY9T7sRCMgkk6A5ZeT9oQ 7NmgVLwEjJCaO+Rt26GwNN4rcgCMeZA= X-Google-Smtp-Source: AMsMyM7pmvazquefmB0Axq8QcP+hT91L726ZBl7oZabOhajA9ISU+cBOTVXyUrXEeaAjmMSgkBKMiQ== X-Received: by 2002:a05:6402:3481:b0:459:50a9:5ab2 with SMTP id v1-20020a056402348100b0045950a95ab2mr3804138edc.279.1664897194464; Tue, 04 Oct 2022 08:26:34 -0700 (PDT) Received: from Mini.fritz.box (pd9e36907.dip0.t-ipconnect.de. [217.227.105.7]) by smtp.gmail.com with ESMTPSA id n19-20020aa7c693000000b00458a03203b1sm1934398edq.31.2022.10.04.08.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 08:26:33 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Date: Tue, 04 Oct 2022 17:26:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x529.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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) In GNU Emacs 29.0.50 (build 5, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-10-04 built on Mini.fritz.box Repository revision: 849b7756fd31a69791e67dfe010b1e10f0168c83 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6 This is latest master as of writing this. When compiling emacs, I see emacs.c:899:7: warning: variable 'bufsize' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (!(emacs_executable && *emacs_executable)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emacs.c:964:7: note: uninitialized use occurs here if (bufsize < needed) ^~~~~~~ emacs.c:899:3: note: remove the 'if' if its condition is always false if (!(emacs_executable && *emacs_executable)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emacs.c:928:3: note: variable 'bufsize' is declared here ptrdiff_t bufsize = exenamelen + strlen (suffix) + 1; ^ emacs.c:1755:17: warning: 'fork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] f = fork (); /* in orig */ From unknown Sat Aug 09 22:09:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58291 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Cc: 58291@debbugs.gnu.org, Andreas Schwab Received: via spool by 58291-submit@debbugs.gnu.org id=B58291.166490885924917 (code B ref 58291); Tue, 04 Oct 2022 18:41:01 +0000 Received: (at 58291) by debbugs.gnu.org; 4 Oct 2022 18:40:59 +0000 Received: from localhost ([127.0.0.1]:55189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofmqh-0006Tp-Jb for submit@debbugs.gnu.org; Tue, 04 Oct 2022 14:40:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofmqc-0006TU-4X for 58291@debbugs.gnu.org; Tue, 04 Oct 2022 14:40:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uhGTmcO58zwUaRJoMv8c45+CdJKe5QtKodqjIaQdKRQ=; b=aPGNkv7Ai+J1SGMrHrhdQQ+Uvo lj8Oxa0R8drSvaRge3kd2VqEtIw29UZf01zLAPgiB+AcbWHOqYk5Zk5yXn72g105xpzkTyb2khFJf KMZZE3WY3iXzLP4vUYNIA2oIoR22y5/XtQ2uvoivUG/A1QX0et2WSRGvXb9/b3sc9bFs=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofmqS-0006sQ-V8; Tue, 04 Oct 2022 20:40:47 +0200 From: Lars Ingebrigtsen In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Tue, 04 Oct 2022 17:26:32 +0200") References: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU7MjeVWmXe1cr/ //9HfuA7AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKBBIoCfI4vNkAAAFLSURBVCjPTZFBbsIwEEX/ WEmksjJSsiBHyClsqek6SDYL1kUqOUXgBHRB11RKKuJTdmzHgBfWPM/4j/0H4FVc/I467KvhBWr1 Ao0CGS6IAFQ2wREwunsA/cwGRQAH9PNBRWiGvJktdlFzoH5usY9Nod2cUwQg70fSHwvg8wtbSsCZ LsWoL0/IAVIJysxzggLZEmYw4pbAwtC0xNSiFFOq05BikktKE8SYlCmHuD3atCh+8VRY3RJU76jH cMrvq9iMeyjvQNZCzB7eFBtocQovaBU4xjkMQimybLX+jpOoGHK6RG3qWmyyboxftp08Bvd9xpbZ vVI9SxCDovnI1kusQVvF7sLxLGSwyd2Fc4MHRTyExjkvXknQ/to7LpUw/Pv+unJ8SYOHjkPLd/7Y M7/MTvuMiePxMC2ZcqO9GreHQlacQsas2fms2DL8A0kSVvj+DBcIAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTEwLTA0VDE4OjQwOjA5KzAwOjAwcdfc+QAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0x MC0wNFQxODo0MDowOSswMDowMACKZEUAAAAASUVORK5CYII= X-Now-Playing: Joni Mitchell's _Dog Eat Dog_: "Impossible Dreamer" Date: Tue, 04 Oct 2022 20:40:41 +0200 Message-ID: <87v8oz5t5i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerd =?UTF-8?Q?M=C3=B6llmann?= writes: > This is latest master as of writing this. When compiling emacs, I see > > emacs.c:899:7: warning: variable 'bufsize' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > This is latest master as of writing this. When compiling emacs, I see > > emacs.c:899:7: warning: variable 'bufsize' is used uninitialized whenever= 'if' condition is true [-Wsometimes-uninitialized] > if (!(emacs_executable && *emacs_executable)) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > emacs.c:964:7: note: uninitialized use occurs here > if (bufsize < needed) > ^~~~~~~ I guess this might be related to Andreas' recent fix? Added to the CCs. From unknown Sat Aug 09 22:09:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Subject: bug#58291: closed (Re: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c) Message-ID: References: X-Gnu-PR-Message: they-closed 58291 X-Gnu-PR-Package: emacs Reply-To: 58291@debbugs.gnu.org Date: Tue, 04 Oct 2022 18:59:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1664909942-26705-1" This is a multi-part message in MIME format... ------------=_1664909942-26705-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58291: 29.0.50; MacOS compilation warning for possibly unitialized use in = emacs.c which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58291@debbugs.gnu.org. --=20 58291: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58291 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1664909942-26705-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58291-done) by debbugs.gnu.org; 4 Oct 2022 18:58:05 +0000 Received: from localhost ([127.0.0.1]:55208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofn7F-0006vR-6D for submit@debbugs.gnu.org; Tue, 04 Oct 2022 14:58:05 -0400 Received: from mail-oa1-f54.google.com ([209.85.160.54]:35333) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofn7D-0006ux-DX for 58291-done@debbugs.gnu.org; Tue, 04 Oct 2022 14:58:03 -0400 Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-132555b7121so8517854fac.2 for <58291-done@debbugs.gnu.org>; Tue, 04 Oct 2022 11:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date; bh=FFd9zbzzxMWZ2R+50W5KI0HDaMirhY+M9CgSuGRDBzk=; b=TVnLPYzVd8OHtGjI1DMB390fUR+i1SN3eHM27pVvRX9z0UgPX20WjcbRhrVatUra/f u/jmmcX9X41RGv35/G3n1fmwfQ7coxXZjSqyiRon2JGuPDGk2q09628SGGPF2cof5bK2 dhPrxqoc7SXKjFZGhwfXd9huUvHc0T4aTy2HkOS/2LbjWAKlRd78rX5Cs51VRdLKrFrU /uTws09K3RSE8sC88uc+5mC0Zj+gglYerzS3KEN1Znx8l0DKvlEcqK3/IjwepJPJKbPm YnmBz1bIRdx1ySibnxXJdwbbJMrwfSoPmcaO/DJJj7L/leAdA8nQh1I5K1y15GVE8NdN rT3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date; bh=FFd9zbzzxMWZ2R+50W5KI0HDaMirhY+M9CgSuGRDBzk=; b=ZL8vRxQQKDkvVtTJvT6n3kkpJtZQMrML54pKbQYFyHRG/2hwlremYvYmZDRZQL6i8p CRLhNfJYzMzl5eFiNsQRlx+svbdBPdYte7JbjmZLEnZG4ofyeJlxkEU6f15CNH4IARYq UwqY4GLUu/EeydY63fJTiAWYlT437cTBfYleKcgkDdAhFb7HnVZkYa58pgb2JAOFVEnT bqnJuNJ+EHSN2qMzq+QNGilMJ2IPvxXKDFlVniWmDTMDLPuHMFxlciGRB3/V080XCiXm RBBsLbhIVlzayZFqiTl9bBNSudlyitosZ61exS/yxNQROYV29QfqlUtGPYPfpjPV6Ify GNsA== X-Gm-Message-State: ACrzQf1MWpwAjZSgPuNPlsI4/MH02syYoux5L/xFMoyBVVRdOO2DGrfx 9GzRvoss8fzSmFnKD8mJyEgYIbNnPA6KLtWKP98= X-Google-Smtp-Source: AMsMyM5W9y1CZsOifJbj090MFiWt4fiJ2zmiB2IPky8ZRAUJyxqwBU4eLyR+DA9whbHPnvtLPC3VUk1Rccb5MKS1ye0= X-Received: by 2002:a05:6870:9126:b0:132:b724:e96c with SMTP id o38-20020a056870912600b00132b724e96cmr641822oae.199.1664909877879; Tue, 04 Oct 2022 11:57:57 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 4 Oct 2022 20:57:57 +0200 From: Stefan Kangas In-Reply-To: <87v8oz5t5i.fsf@gnus.org> References: <87v8oz5t5i.fsf@gnus.org> X-Hashcash: 1:20:221004:58291-done@debbugs.gnu.org::cp0ExeUIHNbSxUIU:50MR MIME-Version: 1.0 Date: Tue, 4 Oct 2022 20:57:57 +0200 Message-ID: Subject: Re: bug#58291: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c To: Lars Ingebrigtsen , =?UTF-8?Q?Gerd_M=C3=B6llmann?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58291-done Cc: 58291-done@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Gerd M=C3=B6llmann writes: > >> This is latest master as of writing this. When compiling emacs, I see >> >> emacs.c:899:7: warning: variable 'bufsize' is used uninitialized wheneve= r 'if' condition is true [-Wsometimes-uninitialized] >> if (!(emacs_executable && *emacs_executable)) >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> emacs.c:964:7: note: uninitialized use occurs here >> if (bufsize < needed) >> ^~~~~~~ > > I guess this might be related to Andreas' recent fix? Added to the CCs. This is fixed on emacs-28 and merged to master. Closing. ------------=_1664909942-26705-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Oct 2022 15:26:41 +0000 Received: from localhost ([127.0.0.1]:54963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofjof-0001XA-6U for submit@debbugs.gnu.org; Tue, 04 Oct 2022 11:26:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:35550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofjod-0001X2-LG for submit@debbugs.gnu.org; Tue, 04 Oct 2022 11:26:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofjod-000407-2P for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:26:39 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:35639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofjoa-0004iI-HE for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 11:26:38 -0400 Received: by mail-ed1-x529.google.com with SMTP id s2so8732732edd.2 for ; Tue, 04 Oct 2022 08:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date; bh=AvAQM82Q2BXCYZ0/8JMvqN5ZbCGxF22gvSGamiqol8s=; b=CF4zA17VM1Md0oZwR/3utaqmCjhmCcOWir32ZTPEcrI/t2Xzx984mCXzJApFZPz4UM evj1LZQfp2HlXauDRcWa+TSe8URvoppALuWzIT5hhjb7mmfSZG+Vn6N+tYpXDvGpnK9a eMyWyPKw2DqiPZNKWRxaNXs27Gh9UCfXexDR+BztNvcMhPcAtfCqQ58P+9/CMxPmoj1d 7loMfv9LMTb8LAUY6LBMJh8JBQ/B/7iHNPuIkkBy2xjJwDi/LB88eUq/GfhgirjCpltm YIzLUgbRM3T7jQTX0tbo//3ebjMT10RTciOKzlFRFdXg7HRoIg5Lj18LiwSnuloyikdk KFVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date; bh=AvAQM82Q2BXCYZ0/8JMvqN5ZbCGxF22gvSGamiqol8s=; b=4BJlUSIBV92Rx0q1TQszNTcwXHNlrlcY1i+GWnRkkZR2X/yJzO3f1PshOiwu9vfg7w e79mvHUH1siiNUUwvfvK6J//fxDQ1nKDVqWBGGwOmA2aDlBbFIadY5d8dUikn2EKgaSY Wf4SgPz6HADP7q2IvYPhBujA9Ul31rJCH037DalUvrffVZ9kPZ3kTVMEBTXNASMg2Bb2 Qs9G8g3qdzJ4pjk6fMgR66/RuQ3DGs8VX3ILoOzmIY3JrhY4FD0embpROyeZBeMONPJ9 iL95qKLErX+Ry2KrUUIouOHtwrAl2GjGxbJ2+q/CFyMvsAcpL613zcTAWdFJ6IPSGSxL Q8KA== X-Gm-Message-State: ACrzQf0rPV3lcy8xXEtrK5dhiMXx6xo7s3TYY9T7sRCMgkk6A5ZeT9oQ 7NmgVLwEjJCaO+Rt26GwNN4rcgCMeZA= X-Google-Smtp-Source: AMsMyM7pmvazquefmB0Axq8QcP+hT91L726ZBl7oZabOhajA9ISU+cBOTVXyUrXEeaAjmMSgkBKMiQ== X-Received: by 2002:a05:6402:3481:b0:459:50a9:5ab2 with SMTP id v1-20020a056402348100b0045950a95ab2mr3804138edc.279.1664897194464; Tue, 04 Oct 2022 08:26:34 -0700 (PDT) Received: from Mini.fritz.box (pd9e36907.dip0.t-ipconnect.de. [217.227.105.7]) by smtp.gmail.com with ESMTPSA id n19-20020aa7c693000000b00458a03203b1sm1934398edq.31.2022.10.04.08.26.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 08:26:33 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: bug-gnu-emacs@gnu.org Subject: 29.0.50; MacOS compilation warning for possibly unitialized use in emacs.c Date: Tue, 04 Oct 2022 17:26:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x529.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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) In GNU Emacs 29.0.50 (build 5, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2022-10-04 built on Mini.fritz.box Repository revision: 849b7756fd31a69791e67dfe010b1e10f0168c83 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6 This is latest master as of writing this. When compiling emacs, I see emacs.c:899:7: warning: variable 'bufsize' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (!(emacs_executable && *emacs_executable)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emacs.c:964:7: note: uninitialized use occurs here if (bufsize < needed) ^~~~~~~ emacs.c:899:3: note: remove the 'if' if its condition is always false if (!(emacs_executable && *emacs_executable)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ emacs.c:928:3: note: variable 'bufsize' is declared here ptrdiff_t bufsize = exenamelen + strlen (suffix) + 1; ^ emacs.c:1755:17: warning: 'fork' is deprecated: Use posix_spawn or fork [-Wdeprecated-declarations] f = fork (); /* in orig */ ------------=_1664909942-26705-1--