mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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:
parent
5d5d9cb9e2
commit
6b3a8915f3
48 changed files with 121 additions and 125 deletions
|
|
@ -1199,7 +1199,7 @@ ControlList::unlocked_eval (double x) const
|
|||
return multipoint_eval (x);
|
||||
}
|
||||
|
||||
/*NOTREACHED*/ /* stupid gcc */
|
||||
abort(); /*NOTREACHED*/ /* stupid gcc */
|
||||
return _default_value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue