aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-curses
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-12-28 03:57:23 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-12-28 03:57:23 +0300
commit740ace4d2987e245bc61f6d158804d8e4ae93a3c (patch)
tree6a153823f2c5f0cf0c6b5be81b9aac3de4b6651a /src/interface-curses
parent566a05dfbf916b83715ade4e52b1e302404fa69c (diff)
downloadsciteco-740ace4d2987e245bc61f6d158804d8e4ae93a3c.tar.gz
avoid some compiler warnings
Diffstat (limited to 'src/interface-curses')
-rw-r--r--src/interface-curses/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c
index f713bc1..05d37ee 100644
--- a/src/interface-curses/interface.c
+++ b/src/interface-curses/interface.c
@@ -781,11 +781,11 @@ teco_interface_restore_batch(void)
*/
#ifdef CURSES_TTY
if (teco_interface.stdout_orig >= 0) {
- int fd = dup2(teco_interface.stdout_orig, 1);
+ G_GNUC_UNUSED int fd = dup2(teco_interface.stdout_orig, 1);
g_assert(fd == 1);
}
if (teco_interface.stderr_orig >= 0) {
- int fd = dup2(teco_interface.stderr_orig, 2);
+ G_GNUC_UNUSED int fd = dup2(teco_interface.stderr_orig, 2);
g_assert(fd == 2);
}
#endif