From 5a7a70b8958b726b92e76b4aedeba4a04b85085f Mon Sep 17 00:00:00 2001
From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
Date: Thu, 9 Dec 2021 08:09:44 +0100
Subject: Remove compiler warnings about unused parameters (issue #307)
---
FL/Fl_Table.H | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'FL/Fl_Table.H')
diff --git a/FL/Fl_Table.H b/FL/Fl_Table.H
index ecc68efa7..62bc28be5 100644
--- a/FL/Fl_Table.H
+++ b/FL/Fl_Table.H
@@ -323,11 +323,11 @@ protected:
- \p row and \p col will be set to the row and column number
- of the cell being drawn. In the case of row headers, \p col will be \a 0.
- In the case of column headers, \p row will be \a 0.
+ \p R and \p C will be set to the row and column number
+ of the cell being drawn. In the case of row headers, \p C will be \a 0.
+ In the case of column headers, \p R will be \a 0.
- x/y/w/h will be the position and dimensions of where the cell
+ X/Y/W/H will be the position and dimensions of where the cell
should be drawn.
In the case of custom widgets, a minimal draw_cell() override might
@@ -384,7 +384,7 @@ protected:
*/
virtual void draw_cell(TableContext context, int R=0, int C=0,
int X=0, int Y=0, int W=0, int H=0)
- { } // overridden by deriving class
+ { (void)context; (void)R; (void)C; (void)X; (void)Y; (void)W; (void)H;} // overridden by deriving class
long row_scroll_position(int row); // find scroll position of row (in pixels)
long col_scroll_position(int col); // find scroll position of col (in pixels)
--
cgit v1.2.3