changeset 14940:5f05007ccc5f

Mark fail with GCC_ATTR_NORETURN
author Max Brister <max@2bass.com>
date Thu, 07 Jun 2012 16:45:19 -0500
parents 4488022820c9
children 1e3d0366ac8b
files src/pt-jit.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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