emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC 4.9.1 suggests -std=c99


From: Dmitry Antipov
Subject: GCC 4.9.1 suggests -std=c99
Date: Tue, 09 Sep 2014 18:30:06 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]