From: Paul Eggert <eggert@cs.ucla.edu>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: #2 [Was: Re: Function attributes for make-docfile]
Date: Mon, 12 Jan 2015 23:29:53 -0800 [thread overview]
Message-ID: <54B4C971.7010209@cs.ucla.edu> (raw)
In-Reply-To: <54B3BDE3.8030602@yandex.ru>
Dmitry Antipov wrote:
> OK to install?
I guess so, since you already installed it. :-) It looks good, but there is a
problem when I configure as follows on Fedora 21 x86-64:
./configure --enable-gcc-warnings --with-x-toolkit=no
The resulting build fails as follows:
CC fileio.o
In file included from fileio.c:45:0:
fileio.c: In function ‘Fnext_read_file_uses_dialog_p’:
fileio.c:5739:40: error: function might be candidate for attribute ‘const’
[-Werror=suggest-attribute=const]
DEFUN ("next-read-file-uses-dialog-p", Fnext_read_file_uses_dialog_p,
^
lisp.h:2766:16: note: in definition of macro ‘DEFUN’
Lisp_Object fnname
^
cc1: all warnings being treated as errors
Fnext_read_file_uses_dialog_p should be a const function if and only if
!(defined USE_MOTIF || defined HAVE_NTGUI || defined USE_GTK || defined
HAVE_NS), but the DEFUN syntax doesn't let one specify a function to be
conditionally const -- it's either always const or always non-const. This
problem existed before you installed this change, but I worry that the change
will make it harder to fix.
next prev parent reply other threads:[~2015-01-13 7:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 4:09 Function attributes for make-docfile Dmitry Antipov
2015-01-12 5:33 ` Stefan Monnier
2015-01-12 5:49 ` Paul Eggert
2015-01-12 12:28 ` #2 [Was: Re: Function attributes for make-docfile] Dmitry Antipov
2015-01-13 7:29 ` Paul Eggert [this message]
2015-01-13 10:21 ` Dmitry Antipov
2015-01-13 17:43 ` Paul Eggert
2015-01-13 19:45 ` Stefan Monnier
2015-01-13 23:26 ` Paul Eggert
2015-01-14 17:49 ` Stefan Monnier
2015-01-14 19:44 ` Paul Eggert
2015-01-15 3:27 ` Dmitry Antipov
2015-01-15 3:54 ` Dmitry Antipov
2015-01-15 5:33 ` Stefan Monnier
2015-01-16 4:50 ` Paul Eggert
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=54B4C971.7010209@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.