summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-10-21 21:38:38 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-10-21 21:38:38 +0200
commit3289c8b947a558afb3971c0fc9dda05f2be580c6 (patch)
treec587c75135929993513a592d597f38ccab1bdf4a /src
parentbbf0ea664dbc9d0b6faa29e3b9752fec6a094bba (diff)
Fix compiler warning [-Wreturn-type]
"control reaches end of non-void function"
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Grid.cxx4
1 files changed, 3 insertions, 1 deletions
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;
}