all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GCC 4.9.1 suggests -std=c99
@ 2014-09-09 14:30 Dmitry Antipov
  2014-09-09 14:43 ` Eli Zaretskii
  2014-09-09 14:58 ` Paul Eggert
  0 siblings, 2 replies; 9+ messages in thread
From: Dmitry Antipov @ 2014-09-09 14:30 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs development discussions

With GCC 4.9.1 and '--enable-checking --enable-check-lisp-object-type --enable-gcc-warnings':

../../trunk/src/sysdep.c: In function 'str_collate':
../../trunk/src/sysdep.c:3751:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 1; i < 3; i++)
   ^
../../trunk/src/sysdep.c:3751:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
../../trunk/src/sysdep.c:3766:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 1; i < 3; i++)
   ^
I.e. shouldn't we always use -std=c99 if we assume C99 anyway?

Dmitry



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

end of thread, other threads:[~2014-09-09 17:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09 14:30 GCC 4.9.1 suggests -std=c99 Dmitry Antipov
2014-09-09 14:43 ` Eli Zaretskii
2014-09-09 14:58 ` Paul Eggert
2014-09-09 15:06   ` Eli Zaretskii
2014-09-09 15:21     ` Paul Eggert
2014-09-09 15:50       ` Eli Zaretskii
2014-09-09 16:42         ` Dmitry Antipov
2014-09-09 17:11         ` Paul Eggert
2014-09-09 15:38   ` Dmitry Antipov

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.