freebsd-ports/textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp
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
334 B
C++

--- src/sphinxstemen.cpp.orig 2018-02-03 10:36:47 UTC
+++ src/sphinxstemen.cpp
@@ -47,7 +47,7 @@ static unsigned char vowel_map[] =
static inline int stem_en_id ( unsigned char l )
{
- register unsigned char * v = stem_en_doubles;
+ unsigned char * v = stem_en_doubles;
while ( *v && *v!=l ) v++;
return ( *v==l ) ? 1 : 0;
}