Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
eddelbuettel merged 2 commits intomasterfromfeature/clang_conversion_warnings
Jan 9, 2023

Conversation

@eddelbuettel
Copy link
Member

This PR addresses warnings seen when building withclang++-14 -Wall -pedantic -Wconversion -Wno-sign-conversion as 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

  • Code compiles correctly
  • R CMD check still passes all tests
  • Prefereably, new tests were added which fail without the change
  • Document the changes by file inChangeLog

Copy link
Contributor

@kevinusheykevinushey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

Copy link
Member

@Enchufa2Enchufa2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

@eddelbuettel
Copy link
MemberAuthor

Thank you both!

@eddelbuetteleddelbuettel merged commit39669cb intomasterJan 9, 2023
@eddelbuetteleddelbuettel deleted the feature/clang_conversion_warnings branchJanuary 9, 2023 16:03
@eddelbuettel
Copy link
MemberAuthor

I will need a one-line follow-up as the change inattributes.cpp now triggers a warning underg++-12. Can't win 😉

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

@eddelbuetteleddelbuettel mentioned this pull requestJan 9, 2023
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kevinusheykevinusheykevinushey approved these changes

@Enchufa2Enchufa2Enchufa2 approved these changes

@jjallairejjallaireAwaiting requested review from jjallaire

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@eddelbuettel@kevinushey@Enchufa2

[8]ページ先頭

©2009-2025 Movatter.jp