Bugzilla – Bug 152888
black-box-1.4.7-3: local variable used before set
Last modified: 2006-02-24 16:43:59 UTC
I just tried to compile package black-box-1.4.7-3 with the Intel C compiler. It said blackbox.c(663): warning #592: variable "crystal_num" is used before its value is set The source code is int x,y,crystal_num; for (x=0;x<=10;x++){ for (y=0;y<=8;y++){ think[x][y]=0; light[x][y]=0; } } while ((crystal_num>difficulty*3)||(crystal_num<(difficulty-1)*3)) Suggest initialise local variable "crystal_num" before first use.
I'll take a closer look on the soruce code. Thak you for reporting this bug.
Fixed, patch submited.