Skip to content

Commit 63c7127

Browse files
committed
nss: Fix build with glibc-2.43 assignment discards 'const' qualifier from pointer
- https://bugzilla.mozilla.org/show_bug.cgi?id=2012313
1 parent 66ebb13 commit 63c7127

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From fdf0a91b19b4cb5616c596faa372ae4365839225 Mon Sep 17 00:00:00 2001
2+
From: Rudi Heitbaum <rudi@heitbaum.com>
3+
Date: Sun, 25 Jan 2026 03:32:16 +0000
4+
Subject: [PATCH] Fix build with glibc-2.43 assignment discards 'const'
5+
qualifier from pointer
6+
7+
Fixes:
8+
In file included from lowhash_vector.c:65:
9+
genload.c: In function 'loader_LoadLibInReferenceDir':
10+
genload.c:92:7: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
11+
92 | c = strrchr(referencePath, PR_GetDirectorySeparator());
12+
| ^
13+
14+
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
15+
---
16+
nss/lib/freebl/genload.c | 2 +-
17+
1 file changed, 1 insertion(+), 1 deletion(-)
18+
19+
diff --git a/nss/lib/freebl/genload.c b/nss/lib/freebl/genload.c
20+
index 832deb58c..e3231e3e5 100644
21+
--- a/nss/lib/freebl/genload.c
22+
+++ b/nss/lib/freebl/genload.c
23+
@@ -85,7 +85,7 @@ loader_LoadLibInReferenceDir(const char* referencePath, const char* name)
24+
{
25+
PRLibrary* dlh = NULL;
26+
char* fullName = NULL;
27+
- char* c;
28+
+ const char* c;
29+
PRLibSpec libSpec;
30+
31+
/* Remove the trailing filename from referencePath and add the new one */
32+
--
33+
2.51.0
34+

0 commit comments

Comments
 (0)