From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat' Date: Tue, 19 Apr 2022 10:35:38 +0800 Message-ID: <87zgkhg5qd.fsf@yahoo.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6520"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org, Alan Third , Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , Paul Eggert To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 19 04:36:37 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 1ngdjI-0001Ue-VL for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Apr 2022 04:36:37 +0200 Original-Received: from localhost ([::1]:50262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngdjH-00055I-G0 for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 22:36:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngdib-0004OI-KL for emacs-devel@gnu.org; Mon, 18 Apr 2022 22:35:53 -0400 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:40971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngdiZ-0001Ol-DQ for emacs-devel@gnu.org; Mon, 18 Apr 2022 22:35:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650335749; bh=AiMWtGdNsHl8bsaEy39YXEieBD58DdsYanzuf0l/vHM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=EHh+IUfKLe7svQJOug1dq7/YwzKH/5WxaloTvRBgATP+60ja8uvXitRmdOnnW6v1JZIJabZalIh6ok3fD/CxymAnTzoQDUkF4In7T/9ApJ6XrJwdaw16oEnfyHJNVShv9HDY1iQtpEGDvXiCaGK8NyC3+jjQuXNbXO/vrU5QEy3MxtUobsRxlUmMHf0CmatpFqm4CjcL3ViUWCp7LgvL88wEHQjE1Sgx25VmSZF4A58pPW+7mw1J5Wbz+UzxKfPGhjS5KkqUlS5T3IvKYPD7CdIR1JXxlOb35RjY8jZ3Q67eIeF2LcygEtnTTM9KmK5rxSRXQKWQ8Mqcdgy6oHPwJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650335749; bh=sKC2C9+y0AEJIQFflxYLj9p88vgXn/e0d+nmbULCLPN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Up1WpgPV2i2X+IW0KA3hPfeqZXS1sJ31grEfWL8Y/+KUUvPwATD4dEFlCm6oIIrbMZ00vU3/8aAYCx6k4AQB29JxZWKOX+jvGHWvajhvzU07NG6AwsGN9BgT25DNdUyzDHlleMqO9qbcghpsJlig7rGWUvnWr8htKZQXu143LF6t6h4xXMrYiuVZ2gLnX9d4xIio+WU0w6YLivYCbQEVYjVlhuzHg3KAIMhrkdOG7Btzt1UDJ/1SNomFmeS6ZmSuZHdFl6Ti61NeHOgojKlh/gbMGJRNeF6bVHCE5VsqfKnyZGBWCjiouCSOFeysjDgjtrD40mKu0TJMlFavxgeEdg== X-YMail-OSG: ypdTQwYVM1mZ05u4aWHEunISd1TyRMAPYo19lVCAJULxVPeoZCKn.eFvdISrd2R dTSpak0W7eAVxWIjsDWCYemOKd.M8CM54vtYsjGd03td.UytC5jdPQs._x1ORs1DUv926_PSPnLe 4kw41t2DzWdLjLQWPz.zU1Ly2g_fL3KaYWcxANECfGCfu33yp75I42tYJtivs_l89ZnXvaFUSJ_5 fvyxqYKj3pDxrsHWRFxvreAIPt_7gar1Ti3vxHrzBTMsofHEECGpNeN8S5gDvM81ABtB8frgFSxy KsRW_nPtHPgyhxjisMDHmRtpuZgOgQxp.fYk75D_MdItmlPILokhaASbkmnbXp8reCTFufuWihiX .9ZRES6CjbhRBFw9e_hoZ1MRbau7sdu6kSjoUhZ6nODurv4YN12ibk_lSLIlRAwTUsY8xgePFGMi E1LVZc73UxminrckKjmm_pTvmUy71E3kWtMbxN.ddYNdwRJlnzwAjXcQD1d36ysCiLuVDNgoUaAq B9oyEnlsH1P6D2aJWz.3MNDOB1LF0x3yayS.UP.rYYmWqJexonjtNTMFh4l8P5bg8kXcmah6Py4f 7n7rxyOXTFkvLasE8XB10tSRE44uGeI09hVe1lYnTIIfxGyisnGqpoHY49uWMFPzTngVwWp6UEEQ 7fwP.lH.6vYMwQA1n0WsosMfQYQvVuk_DLzTjPjFKN5bfcWeRPYv7YXRv2J6.wIAKRAGsoZJRFpY ku10gp3ePfYkVJyyor4bONGKnkUJ50s7.yl.jBVvpdKNkZm_BsqT5sePhof81APS60uE.GSaEqo6 SMw.gbH8i.OTAxvS.7JTYmI617oAKKAQ7N.qjOgKL3 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 19 Apr 2022 02:35:49 +0000 Original-Received: by hermes--canary-production-sg3-cfddc4f9d-scfk8 (VZM Hermes SMTP Server) with ESMTPA ID 4412d50978a4c668fb6057fab7b15c8d; Tue, 19 Apr 2022 02:35:43 +0000 (UTC) In-Reply-To: (Keith David Bershatsky's message of "Mon, 18 Apr 2022 18:24:50 -0700") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.199; envelope-from=luangruo@yahoo.com; helo=sonic301-30.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:288639 Archived-At: Keith David Bershatsky writes: > I located just one instance of 1060 and changed it to 1068 per your > suggestion. The build generated one warning during the nsterm.m > section, and then moved on to nsfns.m, where the build stopped. I think you meant nsmenu.m. > CC nsmenu.o > In file included from nsmenu.m:28: > lisp.h:2156: warning: declaration does not declare anything > nsmenu.m: In function '-[EmacsMenu fillWithWidgetValue:]': > nsmenu.m:652: error: stray '@' in program > nsmenu.m:652: error: field name not in record or union initializer > nsmenu.m:652: error: (near initialization for 'font_attribs') > nsmenu.m:652: warning: incompatible Objective-C types initializing 'struct NSFont *', expected 'struct NSDictionary *' I don't know what "@" means in Objective-C, and it seems that GCC doesn't support such a feature. Would someone please explain this piece of code? NSDictionary *font_attribs = @{NSFontAttributeName: menuFont}; > nsmenu.m:678: error: 'NSTextAlignmentRight' undeclared (first use in this function) > nsmenu.m:678: error: (Each undeclared identifier is reported only once > nsmenu.m:678: error: for each function it appears in.) > nsmenu.m:680: error: stray '@' in program > nsmenu.m:680: error: expected expression before '{' token > nsmenu.m:683: error: stray '@' in program > nsmenu.m:683: error: expected ':' before ']' token > nsmenu.m:683: confused by earlier errors, bailing out Likewise for the @{}s in the rest of this program. Maybe it is some kind of dictionary declaration, but where is the documentation? Thanks.