ports/textproc/sphinxsearch/files/patch-src_sphinxint.h
Matthew Seaman f074c54f02 Patches to make the code compatible with clang-6.0 / C++17 -- this will
fix the build on FreeBSD 12.0

   - delete the 'register' keyword everywhere
   - Add whitespace between adjacent quoted strings
   - Update the offsetof() macro to cast the result to int

Reported by:	pkg-fallout
2018-02-04 09:16:23 +00:00

13 lines
260 B
C

--- src/sphinxint.h.orig 2018-02-03 10:17:12 UTC
+++ src/sphinxint.h
@@ -1074,8 +1074,8 @@ inline int FindBit ( DWORD uValue )
inline int sphEncodeVLB8 ( BYTE * buf, uint64_t v )
{
- register BYTE b;
- register int n = 0;
+ BYTE b;
+ int n = 0;
do
{