# HG changeset patch # User Max Brister # Date 1339105519 18000 # Node ID 5f05007ccc5fcb208ba51e9ff66922cee60620bb # Parent 4488022820c972c7a5400958fdaa2356776e397c Mark fail with GCC_ATTR_NORETURN diff -r 4488022820c9 -r 5f05007ccc5f src/pt-jit.cc --- a/src/pt-jit.cc Thu Jun 07 15:48:43 2012 -0500 +++ b/src/pt-jit.cc Thu Jun 07 16:45:19 2012 -0500 @@ -76,6 +76,9 @@ bool mknown; }; +static void fail (void) GCC_ATTR_NORETURN; +static void fail (const std::string&) GCC_ATTR_NORETURN; + static void fail (void) { @@ -865,7 +868,6 @@ return i; fail ("No such predecessor"); - return 0; // silly compiler, why you warn? } void