--- freem/src/service.c 2025/03/24 04:05:36 1.12 +++ freem/src/service.c 2025/04/09 19:52:02 1.13 @@ -1,5 +1,5 @@ /* - * $Id: service.c,v 1.12 2025/03/24 04:05:36 snw Exp $ + * $Id: service.c,v 1.13 2025/04/09 19:52:02 snw Exp $ * terminal and sequential I/O handling, * file and global locking * @@ -25,6 +25,9 @@ * along with FreeM. If not, see . * * $Log: service.c,v $ + * Revision 1.13 2025/04/09 19:52:02 snw + * Eliminate as many warnings as possible while building with -Wall + * * Revision 1.12 2025/03/24 04:05:36 snw * Replace crlf with frm_crlf to avoid symbol conflict with readline on OS/2 * @@ -2761,13 +2764,15 @@ void part_ref (struct vtstyp *scr, short short l; short max; unsigned char exa; +#if !defined(LINUX) && defined(COLOR) unsigned char exc; +#endif short i; unsigned char *linea; unsigned char *linex; unsigned char *linec; unsigned char ch; - unsigned char tmp[1300]; + char tmp[1300]; /* was unsigned char tmp... (snw 4-9-2025) */ /* build up alternate screen */ /* reset SGR,TBM;white on black,go HOME; 25 Lines */ @@ -2837,7 +2842,10 @@ void part_ref (struct vtstyp *scr, short } exa = ~linea[0]; /* dummy value to trigger argument codes on 1st char */ + +#if !defined(LINUX) && defined(COLOR) exc = ~linec[0]; /* dummy value to trigger argument codes on 1st char */ +#endif for (l = 0; l <= max; l++) { @@ -3415,9 +3423,7 @@ void read_m (char *stuff, long read_time static char term_key[256] = {EOL, EOL}; static short int escptr; static short int single; - static short int timoflag; /* timeout flag */ - static long int timex; - static short int timexms; + static short int timoflag; /* timeout flag */ static short int i; static int ch; @@ -3439,10 +3445,7 @@ void read_m (char *stuff, long read_time stuff[0] = EOL; if (length < 1) single = length = 1; - - timex = 0L; - timexms = 0; - + if (io == HOME) opnfile[HOME] = stdin; if (io == HOME && !frm_filter) {