void
IcsKey (int n)
{ // [HGM] input: let up-arrow recall previous line from history
- char *val;
+ char *val = NULL; // to suppress spurious warning
if (!shellUp[InputBoxDlg]) return;
switch(n) {
case 0: col = "#000000"; break;
case 1: col = appData.highlightSquareColor; break;
case 2: col = appData.premoveHighlightColor; break;
+ default: col = "#808080"; break; // cannot happen
}
cr = cairo_create(csBoardWindow);
cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);
cairo_fill (cr);
cairo_destroy (cr);
} else { // evenly colored squares
- char *col;
+ char *col = NULL;
switch (color) {
case 0: col = appData.darkSquareColor; break;
case 1: col = appData.lightSquareColor; break;
case 2: col = "#000000"; break;
+ default: col = "#808080"; break; // cannot happen
}
SetPen(cr, 2.0, col, 0);
cairo_rectangle (cr, fac*x, fac*y, squareSize, squareSize);
GtkTextIter start, end;
String val = NULL;
gboolean res;
- gint index, x, y;
+ gint index = 0, x, y;
switch(event->type) { // figure out what's up
case GDK_MOTION_NOTIFY:
GtkWidget *box;
GtkWidget *checkbutton;
GtkWidget *entry;
- GtkWidget *oldHbox, *hbox = NULL;
+ GtkWidget *oldHbox = NULL, *hbox = NULL;
GtkWidget *pane = NULL;
GtkWidget *button;
GtkWidget *table;
GtkWidget *list;
GtkWidget *graph;
GtkWidget *menuButton;
- GtkWidget *menuBar;
+ GtkWidget *menuBar = NULL;
GtkWidget *menu;
- int i, j, arraysize, left, top, height=999, width=1, boxStart, breakType = 0, r;
+ int i, j, arraysize, left, top, height=999, width=1, boxStart=0, breakType = 0, r;
char def[MSG_SIZ], *msg, engineDlg = (currentCps != NULL && dlgNr != BrowserDlg);
if(dlgNr < PromoDlg && shellUp[dlgNr]) return 0; // already up