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: Sun, 22 May 2022 11:07:11 +0800 Message-ID: <87ee0ms1sw.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="10911"; 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 Sun May 22 05:08:56 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 1nsbxg-0002bT-KU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 May 2022 05:08:56 +0200 Original-Received: from localhost ([::1]:53902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsbxf-0001YW-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 23:08:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsbwo-0001YN-W3 for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 23:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsbwo-0001lO-N9 for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 23:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsbwo-00065G-9s for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 23:08: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: Sun, 22 May 2022 03:08: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.165318885423350 (code B ref 38083); Sun, 22 May 2022 03:08:02 +0000 Original-Received: (at 38083) by debbugs.gnu.org; 22 May 2022 03:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:43331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsbwL-00064Y-Sv for submit@debbugs.gnu.org; Sat, 21 May 2022 23:07:34 -0400 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]:37175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsbwJ-00064F-2o for 38083@debbugs.gnu.org; Sat, 21 May 2022 23:07:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653188843; bh=zNgUsDjgPWKt9aHhl3E6zl5amDjkyt2jBRmsPsj/k9U=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=cGwrukAB4X6AwTdINBaf0nKvvXmHu7iPb3oLYxJKw5pKoVCB0dFTfVxx3wzadicS1rEntf56v7s/2j+lC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Mw0_BoMtlo6zAHpk4D6uT5MJeoKfjEGMPTS24ciYqFYvcyc18xLXUskpuY2ZbKjGvF k0qEfdVzAX6esIDiyHzjZR_fpf8T.pVeduZW_hpE6bAnUuwfH_us1bJjrOZ58FbYyZbVOP76GvYy bmZztyFqX5R4soRAj_417LVMPk7G8L64bi3ElY.V1m8xXHViJTAP6PTZp0obPxkP5GN0BtrnTwzc 9Xf4aJvJv8u7NaXPojOcPa6Eja1LhmE5XAEWNCQ7AKl2agXe3lS2k9Ajc9R3OOuEslLTUbIHGT4F 9r9DJno1d_zz9ty0q6b2W0cqHnsUDldb2HhtzwiPCavsD8olEW9MDbqmmHDr6Jt8je_qjsiflI7C mIuAhijEnvTy3VeHG1_S6_IMGRRuCQi.lKs.LxVCVbLCdssJnk.T7L5ggvg6E3nHg.INSbjQC6B4 X1lSe8nZfUGRS.Pyhr61CxeghwvaL4UgnEbqTTVn7MWVNnnds09PYYGniarvpEIW4KGpG0y1tM7E l5XJwLdhy3Z8TSrgUrwXG1Qj.5gbd7R.MvoDU41dzU X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 22 May 2022 03:07:23 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-bjkcg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d305927af859b35575a20db288602266; Sun, 22 May 2022 03:07:16 +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:232861 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; > ^ > and the following deprecation warnings: > > 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. > nsxwidget.m:75:31: warning: 'plugInsEnabled' is deprecated: first deprecated in macOS 10.15 - Plug-ins are no longer supported [-Wdeprecated-declarations] > configuration.preferences.plugInsEnabled = YES; > ^ > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h:84:28: note: 'plugInsEnabled' has been explicitly marked deprecated here > @property (nonatomic) BOOL plugInsEnabled API_DEPRECATED("Plug-ins are no longer supported", macos(10.10, 10.15)); These should be fixed now, aside from the ones in the xwidget code. Please test.