The Samba-Bugzilla – Attachment 18506 Details for
Bug 15763
ldb fails to build with clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
possible patch
0001-ldb-test-avoid-confusing-clang-with-discard_const.patch (text/plain), 951 bytes, created by
Douglas Bagnall
on 2024-12-08 22:22:04 UTC
(
hide
)
Description:
possible patch
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2024-12-08 22:22:04 UTC
Size:
951 bytes
patch
obsolete
>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 >--- a/lib/ldb/tests/test_ldb_comparison_fold.c >+++ b/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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15763
: 18506