Mercurial > hg > octave-lyh
diff src/pt-jit.cc @ 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 |
line wrap: on
line diff
--- a/src/pt-jit.cc +++ b/src/pt-jit.cc @@ -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