changeset 572:e6dab5ed471c

Decorate audioDB::error with the noreturn attribute (This might smoke out the non-g++ users)
author mas01cr
date Mon, 06 Jul 2009 11:52:21 +0000
parents d25eb017b68e
children 503e0d091d5e
files audioDB.h sample.cpp
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audioDB.h	Fri Jul 03 15:27:29 2009 +0000
+++ b/audioDB.h	Mon Jul 06 11:52:21 2009 +0000
@@ -259,7 +259,7 @@
   unsigned lisztLength;
 
   // private methods
-  void error(const char* a, const char* b = "", const char *sysFunc = 0);
+  void error(const char* a, const char* b = "", const char *sysFunc = 0) __attribute__ ((noreturn));
 
   void insertTimeStamps(unsigned n, std::ifstream* timesFile, double* timesdata);
   void initRNG();
--- a/sample.cpp	Fri Jul 03 15:27:29 2009 +0000
+++ b/sample.cpp	Mon Jul 06 11:52:21 2009 +0000
@@ -50,8 +50,6 @@
   }
   error("fell through in random_track()");
 
-  /* FIXME: decorate error's declaration so that this isn't necessary */
-  return 0;
 }
 
 void audioDB::sample(const char *dbName) {