nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 07b627a725419f1323d8f3254394894d91f0f432
parent a911b3044a97dd0fdae695d508cffe8dd8c0ae5e
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 17 Jul 2021 04:46:35 +0530

Fix unused variable warning

Diffstat:
Msrc/nnn.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2426,17 +2426,20 @@ static bool xrm(char * const fpath) static void xrmfromsel(char *path, char *fpath) { +#ifndef NOX11 bool selected = TRUE; +#endif if ((pdents[cur].flags & DIR_OR_DIRLNK) && scanselforpath(fpath, FALSE)) clearselection(); else if (pdents[cur].flags & FILE_SELECTED) { --nselected; rmfromselbuf(mkpath(path, pdents[cur].name, g_buf)); - } else + } +#ifndef NOX11 + else selected = FALSE; -#ifndef NOX11 if (selected && cfg.x11) plugscript(utils[UTIL_CBCP], F_NOWAIT | F_NOTRACE); #endif