From aedf69764676aaecd34b246fc179a66049b88e23 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Oct 2022 19:38:30 +0200 Subject: [PATCH] Fix crashes due to missing return value due to -fomit-frame-pointer a missing return value leads to stack corruption. This also fixes the return type. --- libs/ardour/session_process.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc index b15283aaa6..9974cd3312 100644 --- a/libs/ardour/session_process.cc +++ b/libs/ardour/session_process.cc @@ -1748,10 +1748,11 @@ Session::bang_trigger_at (int32_t route_index, int32_t row_index) } if (index == route_index) { r->triggerbox()->bang_trigger_at(row_index); - return 1; + return true; } index++; } + return false; } bool @@ -1774,10 +1775,11 @@ Session::unbang_trigger_at (int32_t route_index, int32_t row_index) } if (index == route_index) { r->triggerbox()->unbang_trigger_at(row_index); - return 1; + return true; } index++; } + return false; } void