chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark `help' and `version' functions as not returning.
[disorder]
/
server
/
gstdecode.c
diff --git
a/server/gstdecode.c
b/server/gstdecode.c
index 42ccd7c3982c049f4a84f186bcb48f088437d89d..1f4d7a2272df4eefbb30a589b6a18eccee78c8c4 100644
(file)
--- a/
server/gstdecode.c
+++ b/
server/gstdecode.c
@@
-35,11
+35,13
@@
#include <gst/app/gstappsink.h>
#include <gst/audio/audio.h>
#include <gst/app/gstappsink.h>
#include <gst/audio/audio.h>
-/* The only application we have for `attribute' is declaring function
+/* The only application
s
we have for `attribute' is declaring function
* arguments as being unused, because we have a lot of callback functions
* arguments as being unused, because we have a lot of callback functions
- * which are meant to comply with an externally defined interface.
+ * which are meant to comply with an externally defined interface; and
+ * marking `help' as not returning.
*/
#ifdef __GNUC__
*/
#ifdef __GNUC__
+# define NORETURN __attribute__((noreturn))
# define UNUSED __attribute__((unused))
#endif
# define UNUSED __attribute__((unused))
#endif
@@
-533,7
+535,7
@@
static const struct option options[] = {
{ 0, 0, 0, 0 }
};
{ 0, 0, 0, 0 }
};
-static void help(void)
+static void
NORETURN
help(void)
{
xprintf("Usage:\n"
" disorder-gstdecode [OPTIONS] PATH\n"
{
xprintf("Usage:\n"
" disorder-gstdecode [OPTIONS] PATH\n"