diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2018-02-04 09:16:23 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2018-02-04 09:16:23 +0000 |
commit | f074c54f0217028c9244c0d7da2d90625498d3d6 (patch) | |
tree | cac16ba565ffd0ae8bf218159c646749f37de575 /textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp | |
parent | - Switch to new test framework (diff) |
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
Notes
Notes:
svn path=/head/; revision=460879
Diffstat (limited to 'textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp')
-rw-r--r-- | textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp b/textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp new file mode 100644 index 000000000000..5da1671ed1ee --- /dev/null +++ b/textproc/sphinxsearch/files/patch-src_sphinxstemen.cpp @@ -0,0 +1,11 @@ +--- 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; + } |