diff options
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch b/meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch new file mode 100644 index 0000000000..77a394d556 --- /dev/null +++ b/meta-oe/recipes-support/xrdp/xrdp/0001-mark-count-with-unused-attribute.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 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 | |||
diff --git a/meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb b/meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb index 3e2e84f096..b839a68294 100644 --- a/meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb +++ b/meta-oe/recipes-support/xrdp/xrdp_0.9.19.bb | |||
| @@ -15,6 +15,7 @@ SRC_URI = "https://github.com/neutrinolabs/${BPN}/releases/download/v${PV}/${BPN | |||
| 15 | file://0001-Added-req_distinguished_name-in-etc-xrdp-openssl.con.patch \ | 15 | file://0001-Added-req_distinguished_name-in-etc-xrdp-openssl.con.patch \ |
| 16 | file://0001-Fix-the-compile-error.patch \ | 16 | file://0001-Fix-the-compile-error.patch \ |
| 17 | file://0001-arch-Define-NO_NEED_ALIGN-on-ppc64.patch \ | 17 | file://0001-arch-Define-NO_NEED_ALIGN-on-ppc64.patch \ |
| 18 | file://0001-mark-count-with-unused-attribute.patch \ | ||
| 18 | " | 19 | " |
| 19 | 20 | ||
| 20 | SRC_URI[sha256sum] = "94017d30e475c6d7a24f651e16791551862ae46f82d8de62385e63393f5f93d0" | 21 | SRC_URI[sha256sum] = "94017d30e475c6d7a24f651e16791551862ae46f82d8de62385e63393f5f93d0" |
