Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 492f74dbea1d9a15fbc3e870e78ab52e7fc5583b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 31 Aug 2022 20:19:32 -0700 |
| 4 | Subject: [PATCH] mark count with unused attribute |
| 5 | |
| 6 | This may throw a warning when devel logs are disabled |
| 7 | Fixed |
| 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 | |
| 10 | Upstream-Status: Submitted [https://github.com/neutrinolabs/xrdp/pull/2353] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | sesman/chansrv/chansrv.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c |
| 17 | index 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 | -- |
| 30 | 2.37.3 |
| 31 | |