# HG changeset patch # User mas01cr # Date 1246881141 0 # Node ID e6dab5ed471c81fac67b8d6859578821b6a9be37 # Parent d25eb017b68e6adeea71900c83e72b7df67c1be0 Decorate audioDB::error with the noreturn attribute (This might smoke out the non-g++ users) diff -r d25eb017b68e -r e6dab5ed471c audioDB.h --- 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(); diff -r d25eb017b68e -r e6dab5ed471c sample.cpp --- 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) {