diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-09-08 11:00:34 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-09-08 11:00:34 +0300 |
commit | be90cd1412c89cae6b2ba41133b888008ee478dc (patch) | |
tree | 6ecafcc06f0f9dfca74f3e9615a3c092be1fcb95 /src/sound.c | |
parent | e2a10d7fa8092ef51a3b61a363061e37224e2ca1 (diff) | |
download | emacs-be90cd1412c89cae6b2ba41133b888008ee478dc.tar.gz |
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.
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound.c b/src/sound.c index 4714ac1796b..75c27a97f4d 100644 --- a/src/sound.c +++ b/src/sound.c @@ -293,6 +293,7 @@ static int do_play_sound (const char *, unsigned long); /* BEGIN: Common functions */ +#ifndef WINDOWSNT /* Like perror, but signals an error. */ static _Noreturn void @@ -315,8 +316,6 @@ sound_perror (const char *msg) error ("%s", msg); } - -#ifndef WINDOWSNT /* Display a warning message. */ static void |