[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration o
From: |
Po Lu |
Subject: |
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat' |
Date: |
Tue, 19 Apr 2022 10:35:38 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Keith David Bershatsky <esq@lawlist.com> 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.
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', (continued)
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/17
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/17
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/18
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/18
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/18
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat',
Po Lu <=
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Alan Third, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Po Lu, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Eli Zaretskii, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Po Lu, 2022/04/19
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Alan Third, 2022/04/20
- Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Paul Eggert, 2022/04/18
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/19
Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat', Keith David Bershatsky, 2022/04/20