chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / libtests / test.c
index 354106b2ffc4366b0bfd70882d456a3bd5b56039..86a6184d5bed77fee55a89ae3a9866f30f1b4f9c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder.
- * Copyright (C) 2005, 2007, 2008 Richard Kettlewell
+ * Copyright (C) 2005, 2007-2009 Richard Kettlewell
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -148,7 +148,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
          "  %s [OPTIONS]\n"
          "Options:\n"