chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / server / choose.c
index 405a95df9bf8d43cc09d5c8ff0d448f11f324aba..ab24e2d5e797c083548b0ebde672aecab2ce6f48 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder 
- * Copyright (C) 2008 Richard Kettlewell
+ * Copyright (C) 2008, 2009, 2011 Richard Kettlewell
  * Copyright (C) 2008 Mark Wooding
  *
  * This program is free software: you can redistribute it and/or modify
@@ -42,7 +42,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
          "  disorder-choose [OPTIONS]\n"
          "Options:\n"