Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Address clang conversion warnings#1240
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
kevinushey left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
Enchufa2 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
eddelbuettel commentedJan 9, 2023
Thank you both! |
eddelbuettel commentedJan 9, 2023
I will need a one-line follow-up as the change in ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include/ -fpic -g -O2 -Wall -pipe -pedantic -c attributes.cpp -o attributes.oattributes.cpp: In member function ‘std::stringRcpp::attributes::SourceFileAttributesParser::parseSignature(size_t)’:attributes.cpp:1624:38: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘longunsignedint’}and ‘R_xlen_t’ {aka ‘longint’} [-Wsign-compare]1624 |for (size_t i = lineNumber; i<lines_.size(); i++) { | ~^~~~~~~~~~~~~~ ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include/ -fpic -g -O2 -Wall -pipe -pedantic -c barrier.cpp -o barrier.o |
This PR addresses warnings seen when building with
clang++-14 -Wall -pedantic -Wconversion -Wno-sign-conversionas done on the CRAN 'M1mac' box. It is a fairly simple set of casts. It seems to make sense to fold this into the pending 1.0.10 even though we otherwise dislike making very last minute changes...Checklist
R CMD checkstill passes all tests