Description of Problem: Hello there, I just tried to compile package kon2-0.3.9b-13 from Redhat 8.0. Here are some of the compiler messages. mouse.c:219: warning: `cf' might be used uninitialized in this function fld.c:47: warning: `type' might be used uninitialized in this function bdf.c:55: warning: `code' might be used uninitialized in this function mkminifont.c:28: warning: too few arguments for format Here is a patch which fixes the messages. *** ./font/bdf.c.old 2002-11-11 14:08:30.000000000 +0000 --- ./font/bdf.c 2002-11-11 14:08:43.000000000 +0000 *************** *** 52,58 **** { char *fdata = NULL, line[256], *p, *w, reg[256]; u_char ch, ch2; ! int num, width, high, i, code, data, k, n; struct fontRegs *fReg; struct fontLoaderRegs *fldReg; --- 52,58 ---- { char *fdata = NULL, line[256], *p, *w, reg[256]; u_char ch, ch2; ! int num, width, high, i, code = 0, data, k, n; struct fontRegs *fReg; struct fontLoaderRegs *fldReg; *** ./font/fld.c.old 2002-11-11 14:07:59.000000000 +0000 --- ./font/fld.c 2002-11-11 14:08:12.000000000 +0000 *************** *** 44,50 **** int i, n; FILE *fp = stdin; enum {ST_ARG, ST_UNLOAD, ST_TYPE} st=ST_ARG; ! char *path, *type, *p; u_char *font; int forceLoad=1; --- 44,50 ---- int i, n; FILE *fp = stdin; enum {ST_ARG, ST_UNLOAD, ST_TYPE} st=ST_ARG; ! char *path, *type = 0, *p; u_char *font; int forceLoad=1; *** ./src/mouse.c.old 2002-11-11 14:07:31.000000000 +0000 --- ./src/mouse.c 2002-11-11 14:07:44.000000000 +0000 *************** *** 216,222 **** void MouseSetBaud(int mfd, u_short baud, u_short cflag) { struct termios mio; ! char *cf; tcgetattr(mfd, &mio); --- 216,222 ---- void MouseSetBaud(int mfd, u_short baud, u_short cflag) { struct termios mio; ! char *cf = 0; tcgetattr(mfd, &mio); *** ./tools/mkminifont.c.old 2002-11-11 14:09:06.000000000 +0000 --- ./tools/mkminifont.c 2002-11-11 14:10:15.000000000 +0000 *************** *** 25,31 **** } else path = argv[i]; } if (!path) { ! printf("usage: %s [minix font file]\n"); exit(1); } if ((font = LoadFontFile(path, "minix", 0)) == NULL) { --- 25,31 ---- } else path = argv[i]; } if (!path) { ! printf( "usage: %s [minix font file]\n", argv[ 0]); exit(1); } if ((font = LoadFontFile(path, "minix", 0)) == NULL) { Version-Release number of selected component (if applicable): How Reproducible: Steps to Reproduce: 1. 2. 3. Actual Results: Expected Results: Additional Information:
fixed in 0.3.9b-18
*** Bug 105837 has been marked as a duplicate of this bug. ***