all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: GCC 4.9.1 suggests -std=c99
Date: Tue, 09 Sep 2014 07:58:54 -0700	[thread overview]
Message-ID: <540F15AE.4040106@cs.ucla.edu> (raw)
In-Reply-To: <540F0EEE.6080603@yandex.ru>

Dmitry Antipov wrote:
> 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

I don't observe this problem when I build with GCC 4.9.1.  src/Makefile 
says "CC = gcc -std=gnu99", so it works.  Perhaps you overrode CC?  Or 
maybe you have an old version of autoconf?

While we're on the topic, --enable-gcc-warnings generates false alarms 
when combined with arbitrary other options like 
--enable-check-lisp-object-type, CFLAGS='-g3 -O0', etc.  I do not take 
the trouble to pacify GCC for all combinations of build options, just 
for the default ones.



  parent reply	other threads:[~2014-09-09 14:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=540F15AE.4040106@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /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 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.