]> git.eshelyaron.com Git - emacs.git/commit
Port to clang 3.7.0 on x86-64
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2016 20:47:47 +0000 (13:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2016 20:49:58 +0000 (13:49 -0700)
commit7950e1dd3fc1ce07cc4d6001de6c11a249b80de8
tree75e155ac82d6297a7a42d3116f6028a1b807cd46
parent218ae59019204311101b1d6f79c86f8815b3a65b
Port to clang 3.7.0 on x86-64

* configure.ac: Use AS_IF so that gl_WARN_ADD’s prerequisites are
not done conditionally.  This helps clang, which needs
-Wunknown-warning-option later when configured with warnings.
* src/editfns.c (invalid_time): Now _Noreturn, since clang isn’t
smart enough to figure this out on its own if warnings are enabled.
(lisp_time_struct): Redo for clarity, and to pacify clang.
* src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Don’t use
uninitialized locals.  This avoids undefined behavior and pacifies
clang.
configure.ac
src/editfns.c
src/xfns.c