diff options
| author | Conrad Kostecki <conikost@gentoo.org> | 2025-01-11 02:38:05 +0100 |
|---|---|---|
| committer | Conrad Kostecki <conikost@gentoo.org> | 2025-01-11 02:39:23 +0100 |
| commit | 49bb0a6d775440c70085d690b21cde41aa19248e (patch) | |
| tree | f96eba0f0627922ee27fbf73508bd9428f28bcb9 /dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch | |
| parent | 9459c9454c8a0a65cd7224fda24f6275865f2cc7 (diff) | |
| download | gentoo-49bb0a6d775440c70085d690b21cde41aa19248e.tar.gz gentoo-49bb0a6d775440c70085d690b21cde41aa19248e.tar.bz2 gentoo-49bb0a6d775440c70085d690b21cde41aa19248e.zip | |
dev-libs/concurrencykit: add patch for strict-aliasing
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch')
| -rw-r--r-- | dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch b/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch new file mode 100644 index 000000000000..457da38deef7 --- /dev/null +++ b/dev-libs/concurrencykit/files/concurrencykit-0.7.2-strict-aliasing.patch @@ -0,0 +1,24 @@ +From 4f1e5cc70889058e809984a30917ef1d88bdd63d Mon Sep 17 00:00:00 2001 +From: Samy Al Bahra <sbahra@fileshield.io> +Date: Fri, 10 Jan 2025 19:48:41 -0500 +Subject: [PATCH] regressions/ck_pr: fix type aliasing warning. + +Fixes #200 +--- + regressions/ck_pr/validate/ck_pr_store.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/regressions/ck_pr/validate/ck_pr_store.c b/regressions/ck_pr/validate/ck_pr_store.c +index e012b222..428655bc 100644 +--- a/regressions/ck_pr/validate/ck_pr_store.c ++++ b/regressions/ck_pr/validate/ck_pr_store.c +@@ -67,7 +67,8 @@ + { \ + uint##m##_t f = 0; \ + uint##w##_t j = (uint##w##_t)-1; \ +- ck_pr_store_##w((uint##w##_t *)(void *)&f, j); \ ++ void *f_p = &f; \ ++ ck_pr_store_##w((uint##w##_t *)f_p, j); \ + if (f != j) { \ + printf("FAIL [%#" PRIx##m " != %#" PRIx##w "]\n", f, j);\ + exit(EXIT_FAILURE); \ |
