Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving warnings when building from source in R 3.3.1 #33

Closed
chrisknoll opened this issue Oct 20, 2016 · 4 comments · Fixed by #34
Closed

Receiving warnings when building from source in R 3.3.1 #33

chrisknoll opened this issue Oct 20, 2016 · 4 comments · Fixed by #34

Comments

@chrisknoll
Copy link
Contributor

I'm seeing warnings during installing cyclops (as a dependency of CohortMethod) from source using the following command:

install_git("OHDSI\CohortMethod")

The warning is:

RcppCyclopsInterface.cpp: In member function 'bsccs::priors::JointPriorPtr bsccs::RcppCcdInterface::makePrior(const std::vector<std::basic_string<char> >&, const std::vector<double>&, const ProfileVector&, const HierarchicalChildMap&, const NeighborhoodMap&)':
RcppCyclopsInterface.cpp:581:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         && basePriorName.size() == length
                                 ^
RcppCyclopsInterface.cpp:582:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         && baseVariance.size() == length) {
                                ^

I think the warning is harmless but could this be cleaned up?

-Chris

@msuchard
Copy link
Member

Yes, cleaning up the Windows compile warnings is a great idea. When might I except a pull request? :-)

@chrisknoll
Copy link
Contributor Author

Sure, trust me to do the C++ code....good idea.

chrisknoll added a commit to chrisknoll/Cyclops that referenced this issue Oct 21, 2016
@chrisknoll
Copy link
Contributor Author

Here you go: #34. Interesting that non-windows compilers don't know the difference between signed and unsigned ints?

@msuchard
Copy link
Member

RTools on Windows uses a very old compiler. Newer compilers deduce that length could never have been negative in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants