From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Warnings/errors related to possibly clobbered variables Date: Tue, 13 Jan 2015 14:32:22 +0300 Message-ID: <54B50246.2070507@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421148765 4113 80.91.229.3 (13 Jan 2015 11:32:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 11:32:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: eggert@cs.ucla.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 13 12:32:39 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAziB-0001W5-Dg for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 12:32:39 +0100 Original-Received: from localhost ([::1]:38460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzi5-0002aJ-US for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 06:32:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzi2-0002YQ-5f for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:32:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAzhy-00071r-UD for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:32:30 -0500 Original-Received: from forward7l.mail.yandex.net ([84.201.143.140]:47827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzhy-00071f-Jv for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:32:26 -0500 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward7l.mail.yandex.net (Yandex) with ESMTP id 392ABBC1365; Tue, 13 Jan 2015 14:32:24 +0300 (MSK) Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 89A6B1706ACC; Tue, 13 Jan 2015 14:32:23 +0300 (MSK) Original-Received: from unknown (unknown [195.239.22.162]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id NYFVXMUP6K-WN6iATB5; Tue, 13 Jan 2015 14:32:23 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1421148743; bh=p5RGwWUWhKzyNBaV8idpBrSRZj60KGcQnjvhZz5DnhY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=jEyuSMGQnAfM597kzuDZztJWxtzpAaDiNjaa6qWosSBGvqBnriidmSgNs1NpYMdFv brKU2cwmQwAVKUHR0+km0s4hJo06isCxJE9y/Eoakuo9+JlN961/RpqIZyaN0Ks2xW WyOYIIXHTAFx5EP+4a7UUy1dYbV8eRpTWh0IWnUo= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.140 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181214 Archived-At: With: configure --prefix=3D/not/exists --enable-checking --enable-check-lisp-ob= ject-type --enable-gcc-warnings --with-x-toolkit=3Dlucid I got: =2E./../emacs/src/keyboard.c: In function =E2=80=98read_char=E2=80=99: =2E./../emacs/src/keyboard.c:2376:15: warning: variable =E2=80=98c=E2=80=99= might be clobbered by =E2=80=98longjmp=E2=80=99 or =E2=80=98vfork=E2=80=99= [-Wclobbered] Lisp_Object c; ^ But with: configure --prefix=3D/not/exists --enable-checking --enable-check-lisp-ob= ject-type --enable-gcc-warnings --with-x-toolkit=3Dno the same warning is treated as fatal error: =2E./../emacs/src/keyboard.c: In function =E2=80=98read_char=E2=80=99: =2E./../emacs/src/keyboard.c:2376:15: error: variable =E2=80=98c=E2=80=99= might be clobbered by =E2=80=98longjmp=E2=80=99 or =E2=80=98vfork=E2=80=99= [-Werror=3Dclobbered] Lisp_Object c; ^ cc1: all warnings being treated as errors Why this is so? Dmitry