freebsd-ports/textproc/sphinxsearch/files/patch-src_sphinx.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

11 lines
357 B
C

--- src/sphinx.h.orig 2018-02-03 10:16:36 UTC
+++ src/sphinx.h
@@ -433,7 +433,7 @@ class CSphLowercaser (public)
{
if ( iCode<0 || iCode>=MAX_CODE )
return iCode;
- register int * pChunk = m_pChunk [ iCode >> CHUNK_BITS ];
+ int * pChunk = m_pChunk [ iCode >> CHUNK_BITS ];
if ( pChunk )
return pChunk [ iCode & CHUNK_MASK ];
return 0;