summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-06-24 10:39:14 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-06-24 10:39:14 -0700
commit845ca893904e4664063cb5c121b34925386849f7 (patch)
tree6d9798a0d167f9e6bb5a2a6dae21c83ad9eb9a74 /src/sound.c
parent696056c280e0e4a03e12d8d53f692c015ff19217 (diff)
downloademacs-845ca893904e4664063cb5c121b34925386849f7.tar.gz
Switch from NO_RETURN to C11's _Noreturn.
Fixes: debbugs:11750
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/sound.c b/src/sound.c
index 143653e48e4..65e7af70c5d 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -109,13 +109,6 @@ enum sound_attr
SOUND_ATTR_SENTINEL
};
-#ifdef HAVE_ALSA
-static void alsa_sound_perror (const char *, int) NO_RETURN;
-#endif
-static void sound_perror (const char *) NO_RETURN;
-static void sound_warning (const char *);
-static int parse_sound (Lisp_Object, Lisp_Object *);
-
/* END: Common Definitions */
/* BEGIN: Non Windows Definitions */
@@ -320,7 +313,7 @@ static int do_play_sound (const char *, unsigned long);
/* Like perror, but signals an error. */
-static void
+static _Noreturn void
sound_perror (const char *msg)
{
int saved_errno = errno;
@@ -909,7 +902,7 @@ vox_write (struct sound_device *sd, const char *buffer, ptrdiff_t nbytes)
#define DEFAULT_ALSA_SOUND_DEVICE "default"
#endif
-static void
+static _Noreturn void
alsa_sound_perror (const char *msg, int err)
{
error ("%s: %s", msg, snd_strerror (err));