~ruther/guix-local

ref: b8a4b1fb8df06cf1f0f7d4164e2a119aa033ce6f guix-local/gnu/packages/patches/aegis-constness-error.patch -rw-r--r-- 518 bytes
b8a4b1fb — Leo Famulari gnu: linux-libre 6.1: Update to 6.1.149. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
Fixes a fatal constness error with g++ 4.8.2.
--- aegis-4.24/common/ac/string/memmem.cc	2008-03-14 07:19:27.000000000 +0100
+++ aegis-4.24/common/ac/string/memmem.cc	2014-01-26 11:17:58.000000000 +0100
@@ -182,7 +182,7 @@
 
     // Use optimizations in memchr when possible.
     if (needle_len == 1)
-        return memchr(haystack, *needle, haystack_len);
+        return (void *) memchr(haystack, *needle, haystack_len);
 
     // Minimizing the worst-case complexity:
     // Let n = haystack_len, m = needle_len.