From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38083: 27.0.50; Deprecation warnings in NS build Date: Sat, 21 May 2022 13:46:26 +0200 Message-ID: <87sfp3yup9.fsf@gnus.org> References: <874k1k4g9d.fsf@gnus.org> <87ilq0whd1.fsf@yahoo.com> <87h75kjs3p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14403"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu , 38083@debbugs.gnu.org To: Pankaj Jangid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 13:47:27 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 1nsNZu-0003WW-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 13:47:26 +0200 Original-Received: from localhost ([::1]:44296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsNZt-0001SB-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 07:47:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsNZW-0001Qd-O9 for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsNZW-0006fu-8W for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsNZW-0000Os-5C for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 11:47: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.1653133599442 (code B ref 38083); Sat, 21 May 2022 11:47:02 +0000 Original-Received: (at 38083) by debbugs.gnu.org; 21 May 2022 11:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:40812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNZ8-00006i-KN for submit@debbugs.gnu.org; Sat, 21 May 2022 07:46:38 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsNZ6-0008SB-Le for 38083@debbugs.gnu.org; Sat, 21 May 2022 07:46:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=Cj24v9vQjNYa5rF9tnc2MF/SB2a4hVeaUOZ/u38I1PY=; b=nKbetROnqed39Peup8k2S6+W3O LTromLXxNbsFNMwB+mjqi3ZZ9sADwG9/Xl/7ihmh9sal/XL0ondMZQ350WYLLdO/WNnl14kkfUkvc GREzyeTC53vxEW+weRcwXA5tdhLwjaLMwymjPvs/uiaAORMfe+M09X84dqX8Yi731EF4=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsNYx-0002qb-Bg; Sat, 21 May 2022 13:46:30 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRF sLCwf39+MzMx////WgGxBQAAAAFiS0dEAxEMTPIAAAAHdElNRQfmBRULIyAqfMKqAAAA/ElEQVQo z33SO27DMAwAUMqIPHeIDdRH6CncIUsnBbAKJHuH6hQ9goe6Q2cpgHjKkvpyqgADfKAoi7QB/l/v 3z1eEO1agYjhXOKRgNakWDlG2BJOmNaF46c54+AjtreMwEWry0AuupYYL7Rvrtgpc6+IBoYfbILh twFhiDLDiAV0s0fLUDOEkGu4geN+FIDDXX888jZ6a3y9MTxhQksPrS/uyHnQDUtIY0jdwbjysGIe ljLauQqaW3T4WQY3o3/BOtIBzfNex6viupgOONdZw+ihfQRYvPhWLkqIjArXjhlDx01AW3GAtqe+ a7Kq3QU2+XtYESvCZAR6ptf8AXSIl74uHR0nAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA1LTIx VDExOjM1OjMyKzAwOjAwQFCg4gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0yMVQxMTozNToz MiswMDowMDENGF4AAAA4dEVYdGljYzpjb3B5cmlnaHQAQ29weXJpZ2h0IChjKSAxOTk4IEhld2xl dHQtUGFja2FyZCBDb21wYW55+Vd5NwAAACF0RVh0aWNjOmRlc2NyaXB0aW9uAHNSR0IgSUVDNjE5 NjYtMi4xV63aRwAAACZ0RVh0aWNjOm1hbnVmYWN0dXJlcgBJRUMgaHR0cDovL3d3dy5pZWMuY2gc fwBMAAAAN3RFWHRpY2M6bW9kZWwASUVDIDYxOTY2LTIuMSBEZWZhdWx0IFJHQiBjb2xvdXIgc3Bh Y2UgLSBzUkdCRFNIqQAAAABJRU5ErkJggg== X-Now-Playing: Kelly Lee Owens's _Inner Song_: "Re-Wild" In-Reply-To: <87h75kjs3p.fsf@gmail.com> (Pankaj Jangid's message of "Fri, 20 May 2022 18:09:22 +0530") 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:232814 Archived-At: 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)); -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no