From: Lars Ingebrigtsen <larsi@gnus.org>
To: Pankaj Jangid <pankaj.jangid@gmail.com>
Cc: Po Lu <luangruo@yahoo.com>, 38083@debbugs.gnu.org
Subject: bug#38083: 27.0.50; Deprecation warnings in NS build
Date: Sat, 21 May 2022 13:46:26 +0200 [thread overview]
Message-ID: <87sfp3yup9.fsf@gnus.org> (raw)
In-Reply-To: <87h75kjs3p.fsf@gmail.com> (Pankaj Jangid's message of "Fri, 20 May 2022 18:09:22 +0530")
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<NSString *> *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
next prev parent reply other threads:[~2022-05-21 11:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 5:26 bug#38083: 27.0.50; Deprecation warnings in NS build Pankaj Jangid
2022-05-20 11:04 ` Lars Ingebrigtsen
2022-05-20 11:52 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-20 12:39 ` Pankaj Jangid
2022-05-21 11:46 ` Lars Ingebrigtsen [this message]
2022-05-21 11:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-21 13:26 ` Lars Ingebrigtsen
2022-05-22 3:07 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-22 11:20 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfp3yup9.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=38083@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
--cc=pankaj.jangid@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).