blob: 77a394d5561ef49c3de8ba80431a05c74139d1a0 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 492f74dbea1d9a15fbc3e870e78ab52e7fc5583b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 20:19:32 -0700
4Subject: [PATCH] mark count with unused attribute
5
6This may throw a warning when devel logs are disabled
7Fixed
8../../../xrdp-0.9.19/sesman/chansrv/chansrv.c:198:9: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] int count; ^ 1 error generated.
9
10Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/2353]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 sesman/chansrv/chansrv.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
17index 4452d998..b818bff3 100644
18--- a/sesman/chansrv/chansrv.c
19+++ b/sesman/chansrv/chansrv.c
20@@ -195,7 +195,7 @@ check_timeout(void)
21 struct timeout_obj *tobj;
22 struct timeout_obj *last_tobj;
23 struct timeout_obj *temp_tobj;
24- int count;
25+ int count __attribute__((unused));
26 tui32 now;
27
28 LOG_DEVEL(LOG_LEVEL_DEBUG, "check_timeout:");
29--
302.37.3
31