shithub: choc

Download patch

ref: 71cc7a163dd6b391e22afa2badfc67b62c4d82dd
parent: 6345a9bdee69210df5979bac2ea766a25ea1f613
author: Fabian Greffrath <[email protected]>
date: Tue Nov 17 12:33:13 EST 2015

Fix warning: variable ‘widget’ set but not used

--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -149,11 +149,8 @@
                                       unsigned int *row_heights,
                                       unsigned int *w, unsigned int *h)
 {
-    txt_widget_t *widget;
     int cell_w, cell_h;
     int x1, y1;
-
-    widget = table->widgets[y * table->columns + x];
 
     // Find which cells this widget occupies.
     CellOverflowedSize(table, x, y, &cell_w, &cell_h);