all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: eggert@cs.ucla.edu
Cc: emacs-devel@gnu.org
Subject: Warnings/errors related to possibly clobbered variables
Date: Tue, 13 Jan 2015 14:32:22 +0300	[thread overview]
Message-ID: <54B50246.2070507@yandex.ru> (raw)

With:

configure --prefix=/not/exists --enable-checking --enable-check-lisp-object-type --enable-gcc-warnings --with-x-toolkit=lucid

I got:

../../emacs/src/keyboard.c: In function ‘read_char’:
../../emacs/src/keyboard.c:2376:15: warning: variable ‘c’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
    Lisp_Object c;
                ^
But with:

configure --prefix=/not/exists --enable-checking --enable-check-lisp-object-type --enable-gcc-warnings --with-x-toolkit=no

the same warning is treated as fatal error:

../../emacs/src/keyboard.c: In function ‘read_char’:
../../emacs/src/keyboard.c:2376:15: error: variable ‘c’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
    Lisp_Object c;
                ^
cc1: all warnings being treated as errors

Why this is so?

Dmitry




             reply	other threads:[~2015-01-13 11:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 11:32 Dmitry Antipov [this message]
2015-01-13 11:51 ` Warnings/errors related to possibly clobbered variables Andreas Schwab
2015-01-13 12:12   ` Dmitry Antipov
2015-01-13 16:21     ` Eli Zaretskii
2015-01-13 17:07       ` Paul Eggert
2015-01-13 19:43       ` Stefan Monnier
2015-01-13 20:10         ` Eli Zaretskii
2015-01-13 20:55           ` Stefan Monnier
2015-01-13 21:31           ` 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=54B50246.2070507@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=eggert@cs.ucla.edu \
    --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.