mirror of
https://github.com/jarun/nnn.git
synced 2025-01-23 09:16:46 +00:00
Fix #1102: suppress clang unused variable warnings
This commit is contained in:
parent
5f5ee10e94
commit
d9db6b045c
12
src/nnn.c
12
src/nnn.c
|
@ -808,12 +808,6 @@ static haiku_nm_h haiku_hnd;
|
||||||
#define ENTSORT(pdents, ndents, entrycmpfn) qsort((pdents), (ndents), sizeof(*(pdents)), (entrycmpfn))
|
#define ENTSORT(pdents, ndents, entrycmpfn) qsort((pdents), (ndents), sizeof(*(pdents)), (entrycmpfn))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#define UNUSED(x) UNUSED_##x __attribute__((__unused__))
|
|
||||||
#else
|
|
||||||
#define UNUSED(x) UNUSED_##x
|
|
||||||
#endif /* __GNUC__ */
|
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static void redraw(char *path);
|
static void redraw(char *path);
|
||||||
static int spawn(char *file, char *arg1, char *arg2, char *arg3, ushort_t flag);
|
static int spawn(char *file, char *arg1, char *arg2, char *arg3, ushort_t flag);
|
||||||
|
@ -826,13 +820,15 @@ static void notify_fifo(bool force);
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
|
|
||||||
static void sigint_handler(int UNUSED(sig))
|
static void sigint_handler(int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
g_state.interrupt = 1;
|
g_state.interrupt = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void clean_exit_sighandler(int UNUSED(sig))
|
static void clean_exit_sighandler(int sig)
|
||||||
{
|
{
|
||||||
|
(void) sig;
|
||||||
exitcurses();
|
exitcurses();
|
||||||
/* This triggers cleanup() thanks to atexit() */
|
/* This triggers cleanup() thanks to atexit() */
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
|
Loading…
Reference in a new issue