add abort() to non-reached code

This cleans up a lot of false-positives in static analysis
and also helps compilers to optimize code paths in general.
(tagging the fatal stingstream operator as ‘noreturn’ is
far less trivial)
This commit is contained in:
Robin Gareus 2014-11-14 10:47:43 +01:00
parent 5d5d9cb9e2
commit 6b3a8915f3
48 changed files with 121 additions and 125 deletions

View file

@ -1199,7 +1199,7 @@ ControlList::unlocked_eval (double x) const
return multipoint_eval (x);
}
/*NOTREACHED*/ /* stupid gcc */
abort(); /*NOTREACHED*/ /* stupid gcc */
return _default_value;
}