From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#38083: 27.0.50; Deprecation warnings in NS build Date: Sat, 21 May 2022 19:50:29 +0800 Message-ID: <878rqvt88q.fsf@yahoo.com> References: <874k1k4g9d.fsf@gnus.org> <87ilq0whd1.fsf@yahoo.com> <87h75kjs3p.fsf@gmail.com> <87sfp3yup9.fsf@gnus.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34374"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Pankaj Jangid , 38083@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 13:51:41 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nsNe0-0008kI-Jo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 13:51:40 +0200 Original-Received: from localhost ([::1]:45768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsNdx-0002fV-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 07:51:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsNdP-0002fI-A8 for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsNdO-0007F7-8V for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsNdO-0000wZ-7l for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 38083-submit@debbugs.gnu.org id=B38083.16531338443601 (code B ref 38083); Sat, 21 May 2022 11:51:02 +0000 Original-Received: (at 38083) by debbugs.gnu.org; 21 May 2022 11:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:40817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNd6-0000w0-8n for submit@debbugs.gnu.org; Sat, 21 May 2022 07:50:44 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:45666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNd4-0000vl-4J for 38083@debbugs.gnu.org; Sat, 21 May 2022 07:50:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653133836; bh=j5OvexBc91tbI7RjiYLds8XFEXvbkSV6aBwZ6IrRNkQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=NJK1Ra4xf8Lfr7/T9aFHXfodbz3r1QJl8LIe4yfPg3zhqbizdXYPXUGYOb4LIsdZKks4if8OKYLkR9Cjo1t61Hh5wUPpmE9vH9950H4dUKFecfnZulucFmQcOeNcX5cdKBQbyHztsRLMVUT4Wi8MqmATVBkNmFjpDWv2xo3aDW1nLWWPoUlQ4hjsrDacNjlt+leKRpHmosINegwZCocveTmc0uA1gAEiCQE7V/bDmovbsZdtm5PvlSSiV/9DyhXIQBvKSaFZyEfEgMcF5f3gwo+ea4iF4azzbnxqAoOJKp162gidwQVPHkjVSE16pqIbALldQMmrgJqC0c6R//oKBg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653133836; bh=LWjd00U5Stm8NhEcVKVeVIYWfbFqMq6PvooT473EKeR=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=pIhCAY9Aw6xgJp4N4yXeKcRI8zODA0c571km7MoFCET3+rRuCWG6HCZ+E2wEMQ1hkJMdubl1bxIgZrEPEpgySYPreh/8Kh8rHjOjy1GFTDODHqcBmZ/3XASSL7DlK0nUUD3visMm59SHsRnPgKKOg6ILTsBSMaf0C0KJMhcSVGwq4HTxwmdqd9ez97bFYTz1QAR6/unzj2ko/Bqpk2/mbsISov5lSb+5JcoC80tcxtmr6rznOMSQJOKgclEsDYicGYgG/tJ6GUkLqtODZL4dDn7bIpPKhzzTpi4uaywf9LPbOoWLCGfDePiRmgEVf6RZsbo4uRIF7C9cy7jwgb2ogQ== X-YMail-OSG: nJffLegVM1lO6ORVsECArmNHAYFkl7vodbsE9lnk1YSr8S2V1QdWZX.vCl_hE1O cjqzXodLJEZ5969bRghGBLL4q1qMpAxxGkJPqUNB8mhbKUYwmV3vUIAh38nQ8hJRefoaUoL9HiJf .5lPXVT.8eLtbTOvISDTvarqEdszm_rPgwnAn_1.6p4t.tDQ_GcFranZwYvGWwJ0mrMuijl.cWaS 1k1Sm.u27kSGVuhhMK4K9nmkC_gAUauZQSQQOrg5ZKfBaQXbHNqiqARQlhlysIFFu2wtP743gfLU D1axBjGaNzIMvLaxFbM8P_bJ142.dRjROjOmA0dxBRBukSiG1pfue.Nk3LvQ29Huuw6TXkNwLlYI tfYAirmrD4TNGFI.GFgJtV3veaugAxr0QnLkuMSFErmACW9jaZHJRtR8_vInIfoYQqoZpI2q4eL5 Qpct1Gl2zBOXqJlQnDwf26.84Xc3hQBTJEluXIII0s3U_naRA03gyz8Bvb3z3bK6OUZK1iZy4XHb PmQ3beUoP0KQwTE41GGnoNtfnlbAni6bIEbnY07FhFDEHYdpppOU8bpHbUYoR5UNDXN7zfg_uO6W WspLjY_lyEAs5FrTVYPCMucX2920MPY4A_KhbIRoZb6jQcOUuhItG1myv7veraDYRMt8GkjgPhKj qd3szI_Cn2IKuO.GqHts0IIfF35g53ukfek8yIw7KM3k.jkY5P5gMXvkIJntLsSwMxy96IfqRn0m mQ_LpQJQjWzfmWryB6Dff.4_yyDxcs4GbUALsOePnrcSOnt4Hw7mRQwnpv7kD7SUc_mUs_PMzySr iPoj2tQ1PF54B4gxQJkfbBFWQhCgAxIxB8UjBqWjWn X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 21 May 2022 11:50:36 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-b4hml (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 87f1ec905b395a1f8bb325e1e7300ff8; Sat, 21 May 2022 11:50:33 +0000 (UTC) In-Reply-To: <87sfp3yup9.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 21 May 2022 13:46:26 +0200") X-Mailer: WebService/1.1.20225 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232815 Archived-At: Lars Ingebrigtsen writes: > I rooted out my Apple laptop (Macos 12.3.1, which is probably the > newest?), and I get the following warnings: > > xwidget.c:491:19: warning: variable 'xw' set but not used [-Wunused-but-set-variable] > struct xwidget *xw; > ^ > xwidget.c:493:23: warning: unused variable 'keycode' [-Wunused-variable] > int character = -1, keycode = -1; > ^ > xwidget.c:492:17: warning: variable 'f' set but not used [-Wunused-but-set-variable] > struct frame *f = NULL; > ^ > xwidget.c:493:7: warning: unused variable 'character' [-Wunused-variable] > int character = -1, keycode = -1; > ^ > xwidget.c:494:7: warning: unused variable 'modifiers' [-Wunused-variable] > int modifiers = 0; > ^ The NS xwidget implementation is currently completely broken. I wrote that in etc/TODO, and patches are welcome, since I don't know my way around the Mac OS WebKit APIs. > nsfns.m:841:47: warning: 'iconForFileType:' is deprecated: first deprecated in macOS 12.0 - Use -[NSWorkspace iconForContentType:] instead. [-Wdeprecated-declarations] > image = [[[NSWorkspace sharedWorkspace] iconForFileType: @"text"] retain]; > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWorkspace.h:456:1: note: 'iconForFileType:' has been explicitly marked deprecated here > - (NSImage *)iconForFileType:(NSString *)fileType API_DEPRECATED("Use -[NSWorkspace iconForContentType:] instead.", macos(10.0, 12.0)); > ^ > nsfns.m:1760:12: warning: 'setAllowedFileTypes:' is deprecated: first deprecated in macOS 12.0 - Use -allowedContentTypes instead [-Wdeprecated-declarations] > [panel setAllowedFileTypes: nil]; > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: property 'allowedFileTypes' is declared deprecated here > @property (nullable, copy) NSArray *allowedFileTypes API_DEPRECATED("Use -allowedContentTypes instead", macos(10.3,12.0)); > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:215:49: note: 'setAllowedFileTypes:' has been explicitly marked deprecated here > nsfns.m:2599:11: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] > if (IOMasterPort (MACH_PORT_NULL, &masterPort) != kIOReturnSuccess > ^~~~~~~~~~~~ > IOMainPort > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:132:1: note: 'IOMasterPort' has been explicitly marked deprecated here > IOMasterPort( mach_port_t bootstrapPort, > ^ > CC lastfile.o > 3 warnings generated. I will look into the others, thanks.