We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(char)NULL at
(char)NULL
phonics-in-r/src/metaphone.cpp
Line 37 in 062eec5
soundex.cpp
produces
error: cast from 'std::nullptr_t' to 'char' loses precision [-fpermissive]
Maybe these instances of (char)NULL were meant to be '\0' ?
'\0'
* installing to library '/home/runner/R-patched/lib' * installing *source* package 'phonics' ... ** package 'phonics' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: 'g++ (Alpine 14.2.0) 14.2.0' make[1]: Entering directory '/var/local/PKGS/CRAN/phonics/src' g++ -std=gnu++17 -I"/home/runner/R-patched/build/include" -DNDEBUG -I'/home/runner/R-patched/lib/Rcpp/include' -I'/home/runner/R-patched/lib/BH/include' -I/usr/local/include -fpic -O2 -mtune=native -Wno-ignored-attributes -D__MUSL__ -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++17 -I"/home/runner/R-patched/build/include" -DNDEBUG -I'/home/runner/R-patched/lib/Rcpp/include' -I'/home/runner/R-patched/lib/BH/include' -I/usr/local/include -fpic -O2 -mtune=native -Wno-ignored-attributes -D__MUSL__ -c metaphone.cpp -o metaphone.o In file included from /home/runner/R-patched/lib/BH/include/boost/bind/mem_fn.hpp:23, from /home/runner/R-patched/lib/BH/include/boost/mem_fn.hpp:22, from /home/runner/R-patched/lib/BH/include/boost/function/function_template.hpp:16, from /home/runner/R-patched/lib/BH/include/boost/function.hpp:16, from /home/runner/R-patched/lib/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18, from /home/runner/R-patched/lib/BH/include/boost/algorithm/string/find_iterator.hpp:24, from /home/runner/R-patched/lib/BH/include/boost/algorithm/string/iter_find.hpp:27, from /home/runner/R-patched/lib/BH/include/boost/algorithm/string/split.hpp:16, from /home/runner/R-patched/lib/BH/include/boost/algorithm/string.hpp:23, from metaphone.cpp:31: /home/runner/R-patched/lib/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 48 | template<class T> T * get_pointer(std::auto_ptr<T> const& p) | ^~~~~~~~ In file included from /usr/include/c++/14.2.0/memory:78, from /home/runner/R-patched/lib/BH/include/boost/function/function_base.hpp:23, from /home/runner/R-patched/lib/BH/include/boost/function/function_template.hpp:14: /usr/include/c++/14.2.0/bits/unique_ptr.h:59:28: note: declared here 59 | template<typename> class auto_ptr; | ^~~~~~~~ metaphone.cpp: In function 'bool is(std::string, char)': metaphone.cpp:37:21: error: cast from 'std::nullptr_t' to 'char' loses precision [-fpermissive] 37 | #define NULLCHAR (char)NULL | ^ metaphone.cpp:40:18: note: in expansion of macro 'NULLCHAR' 40 | return (c != NULLCHAR && x.find_first_of(c) != std::string::npos); | ^~~~~~~~ metaphone.cpp: In function 'char at(std::string, int)': metaphone.cpp:37:21: error: cast from 'std::nullptr_t' to 'char' loses precision [-fpermissive] 37 | #define NULLCHAR (char)NULL | ^ metaphone.cpp:48:16: note: in expansion of macro 'NULLCHAR' 48 | return NULLCHAR; | ^~~~~~~~ metaphone.cpp: In function 'std::string metaphone_single(std::string, int, bool)': metaphone.cpp:37:21: error: cast from 'std::nullptr_t' to 'char' loses precision [-fpermissive] 37 | #define NULLCHAR (char)NULL | ^ metaphone.cpp:68:21: note: in expansion of macro 'NULLCHAR' 68 | char lastChar = NULLCHAR; | ^~~~~~~~ make[1]: *** [/home/runner/R-patched/build/etc/Makeconf:204: metaphone.o] Error 1 make[1]: Leaving directory '/var/local/PKGS/CRAN/phonics/src' make[1]: Entering directory '/var/local/PKGS/CRAN/phonics/src' make[1]: Leaving directory '/var/local/PKGS/CRAN/phonics/src' ERROR: compilation failed for package 'phonics' * removing '/home/runner/R-patched/lib/phonics'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
(char)NULL
atphonics-in-r/src/metaphone.cpp
Line 37 in 062eec5
(and similarly in two lines of
soundex.cpp
)produces
Maybe these instances of
(char)NULL
were meant to be'\0'
?Full log
The text was updated successfully, but these errors were encountered: