mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
27 lines
946 B
Diff
27 lines
946 B
Diff
From 1728e1455bbd1c4811361c8edb9c2ea2d58673bc Mon Sep 17 00:00:00 2001
|
|
From: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
|
|
Date: Mon, 9 Dec 2024 11:20:15 +1300
|
|
Subject: [PATCH] ldb:test: avoid confusing clang with discard_const
|
|
|
|
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15763
|
|
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
|
|
---
|
|
lib/ldb/tests/test_ldb_comparison_fold.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/ldb/tests/test_ldb_comparison_fold.c b/lib/ldb/tests/test_ldb_comparison_fold.c
|
|
index 601cfe6c482..9763723c7cb 100644
|
|
--- lib/ldb/tests/test_ldb_comparison_fold.c
|
|
+++ lib/ldb/tests/test_ldb_comparison_fold.c
|
|
@@ -52,7 +52,7 @@ struct ranked_value {
|
|
int rank;
|
|
};
|
|
|
|
-#define STR_VAL(s, r) { { discard_const(s), sizeof(s) - 1 }, r}
|
|
+#define STR_VAL(s, r) { { (char *)(s), sizeof(s) - 1 }, r}
|
|
|
|
static const struct ranked_value values_common[] = {
|
|
STR_VAL("", 0),
|
|
--
|
|
2.34.1
|