mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-10 09:22:04 +02:00
fix build warnings: unused-but-set-variable
This commit is contained in:
committed by
Alexander Naumov
parent
7315ca28f3
commit
6cb6fe5213
@@ -671,14 +671,12 @@ struct canvas *cv;
|
||||
struct win *p;
|
||||
{
|
||||
struct ListData *ldata;
|
||||
struct gl_Window_Data *wdata;
|
||||
|
||||
if (cv->c_layer->l_layfn != &ListLf)
|
||||
return;
|
||||
ldata = cv->c_layer->l_data;
|
||||
if (ldata->name != ListID)
|
||||
return;
|
||||
wdata = ldata->data;
|
||||
CV_CALL(cv, WListUpdate(p, ldata));
|
||||
}
|
||||
|
||||
|
||||
@@ -1212,7 +1212,7 @@ int main(int ac, char** av)
|
||||
Panic(0, "Please specify a parameter.");
|
||||
if (strlen(*av) > 80)
|
||||
Panic(0, "Parameter of command 'sessionname' is too long.");
|
||||
*--av;
|
||||
--av;
|
||||
}
|
||||
SET_GUID();
|
||||
SendCmdMessage(sty, SockMatch, av, queryflag >= 0);
|
||||
@@ -2729,12 +2729,11 @@ char *MakeWinMsgEv(char *str, struct win *win, int esc, int padlen, struct event
|
||||
case 'W':
|
||||
{
|
||||
struct win *oldfore = 0;
|
||||
char *ss;
|
||||
if (display) {
|
||||
oldfore = D_fore;
|
||||
D_fore = win;
|
||||
}
|
||||
ss = AddWindows(p, l - 1, (*s == 'w' ? 0 : 1) |
|
||||
AddWindows(p, l - 1, (*s == 'w' ? 0 : 1) |
|
||||
(longflg ? 0 : 2) | (plusflg ? 4 : 0) |
|
||||
(minusflg ? 8 : 0), win ? win->w_number : -1);
|
||||
if (display)
|
||||
|
||||
Reference in New Issue
Block a user