From 3289c8b947a558afb3971c0fc9dda05f2be580c6 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 21 Oct 2023 21:38:38 +0200 Subject: Fix compiler warning [-Wreturn-type] "control reaches end of non-void function" --- src/Fl_Grid.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Fl_Grid.cxx') diff --git a/src/Fl_Grid.cxx b/src/Fl_Grid.cxx index 3928b52a1..a4a20b2fa 100644 --- a/src/Fl_Grid.cxx +++ b/src/Fl_Grid.cxx @@ -1031,7 +1031,9 @@ void Fl_Grid::row_height(int row, int value) { } int Fl_Grid::row_height(int row) const { - if (row >= 0 && row < rows_) return Rows_[row].minh_; + if (row >= 0 && row < rows_) + return Rows_[row].minh_; + return 0; } -- cgit v1.2.3