emacs-devel
[Top][All Lists]
Advanced

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

Warnings/errors related to possibly clobbered variables


From: Dmitry Antipov
Subject: Warnings/errors related to possibly clobbered variables
Date: Tue, 13 Jan 2015 14:32:22 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

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 via email to

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