]> git.eshelyaron.com Git - emacs.git/commit
Avoid compiler warnings on MS-Windows with GCC 6 and 7
authorEli Zaretskii <eliz@gnu.org>
Fri, 8 Sep 2017 08:00:34 +0000 (11:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 8 Sep 2017 08:00:34 +0000 (11:00 +0300)
commitbe90cd1412c89cae6b2ba41133b888008ee478dc
tree6ecafcc06f0f9dfca74f3e9615a3c092be1fcb95
parente2a10d7fa8092ef51a3b61a363061e37224e2ca1
Avoid compiler warnings on MS-Windows with GCC 6 and 7

* src/w32font.c (SUBRANGE): Use unsigned arithmetic for
bit-shifting, to avoid compiler warnings.
(w32font_text_extents): Tell GCC NGLYPHS is non-negative, to avoid
a warning.  For details of the warning, see
http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00093.html.
* src/term.c (keys) [WINDOWSNT]: Don't define, as it is not used
in that build.
* src/sound.c (sound_perror): Ifdef away on WINDOWSNT, as this
function is not used in that build.

* configure.ac: Disable -Wsuggest-attribute=format on MS-Windows.
configure.ac
src/sound.c
src/term.c
src/w32font.c