all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GCC, Objective-C and C99
@ 2020-08-27 21:24 Alan Third
  2020-08-27 22:07 ` Paul Eggert
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Third @ 2020-08-27 21:24 UTC (permalink / raw)
  To: Emacs-Devel devel

I've pushed a new test into scratch/ns-gitlab-ci that runs a build
against GNUstep on emba, however it's failing. I get this error:

nsterm.m: In function '-[EmacsView insertText:]':
nsterm.m:6636:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (NSUInteger i = 0; i < len; i++)
   ^~~

Now, as far as I can tell all I have to do is add -std=c99 when
compiling Objective C, but I'm really not sure where to add it. In a
test I added it to CFLAGS when I configured, and that worked, but that
doesn't seem like a proper fix.

What's really odd is that I never had this problem when I built on a
VM based off Debian Jessie, but I now do with the Debian Stretch
Docker image. I guess something's changed with GCC.
-- 
Alan Third



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-27 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-27 21:24 GCC, Objective-C and C99 Alan Third
2020-08-27 22:07 ` Paul Eggert
2020-08-27 23:28   ` Alan Third

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.