mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-22 00:56:26 -05:00
uemacs: Remove unused 'lflag' variables from file.c
GCC spotted the following unused variable: CC file.o file.c: In function ‘readin’: file.c:225:6: warning: variable ‘lflag’ set but not used [-Wunused-but-set-variable] file.c: In function ‘ifile’: file.c:553:6: warning: variable ‘lflag’ set but not used [-Wunused-but-set-variable] Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ddd45dbff1
commit
dbf1a014a7
4
file.c
4
file.c
@ -222,7 +222,6 @@ int readin(char *fname, int lockfl)
|
||||
int s;
|
||||
int nbytes;
|
||||
int nline;
|
||||
int lflag; /* any lines longer than allowed? */
|
||||
char mesg[NSTRING];
|
||||
|
||||
#if (FILOCK && BSD) || SVR4
|
||||
@ -263,7 +262,6 @@ int readin(char *fname, int lockfl)
|
||||
/* read the file in */
|
||||
mlwrite("(Reading file)");
|
||||
nline = 0;
|
||||
lflag = FALSE;
|
||||
while ((s = ffgetline()) == FIOSUC) {
|
||||
nbytes = strlen(fline);
|
||||
if ((lp1 = lalloc(nbytes)) == NULL) {
|
||||
@ -550,7 +548,6 @@ int ifile(char *fname)
|
||||
int s;
|
||||
int nbytes;
|
||||
int nline;
|
||||
int lflag; /* any lines longer than allowed? */
|
||||
char mesg[NSTRING];
|
||||
|
||||
bp = curbp; /* Cheap. */
|
||||
@ -576,7 +573,6 @@ int ifile(char *fname)
|
||||
curwp->w_marko = 0;
|
||||
|
||||
nline = 0;
|
||||
lflag = FALSE;
|
||||
while ((s = ffgetline()) == FIOSUC) {
|
||||
nbytes = strlen(fline);
|
||||
if ((lp1 = lalloc(nbytes)) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user