-
-
Notifications
You must be signed in to change notification settings - Fork 219
New warnings from -Wconversion -Wno-sign-conversion #1299
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
Comments
I am actually not sure I can reproduce these with |
I assume you asked Prof. Ripley for more details. :) In the meantime, I found this for the second one via Google search, nothing for the first one. |
I looked into this some more. One can tickle a fair amount by for example testing our embedded package So we |
Do you have a branch with this to apply another pair of eyes? |
And lo and behold it is in better shape now as #1303 helped us here too it seems. To recap, I used this is ~/.R/Makevars` to get the appropriate compiler and the two important flags:
With that I ran the following snippet repeatedly (as we by the design of our tests have to reinstall to have the updated headers used) from directory cd ../..; ./cleanup; install.r; cd -; RunVerboseRcppTests=yes RunAllRcppTests=yes tt.r -f test_module_client_package.R where |
New branch bugfix/size_t_casts pushed. It behaves here. I think the key difference to what gave me minor trouble yesterday is the one-line change in Module.h. |
(Note to self) Packages to check for more casts: Found using this search:
|
Hi, not sure if further input is still needed, but I saw the following warning when compiling with clang 17.0.6 and
This I was able to silence switching
|
Hi @JanMarvin that is helpful as we likely do need additional rounds of fixes as different packages will expose different parts of the "API surface". Which package did you compile? |
Hi @eddelbuettel , I was compiling |
Confirming. An alternative (more local?) fix would be @@ -107,7 +105,7 @@ public:
}
inline difference_type operator-(const Proxy_Iterator& other) const {
- return proxy.index - other.proxy.index ;
+ return static_cast<difference_type>(proxy.index - other.proxy.index) ;
}
inline int index() const { return proxy.index ; } which is more local but your suggestion is likely better. But may require more testing. |
@Enchufa2 You search string is good! I see
I will try to get to these one by one. Help welcome 😀 . I will also push a new branch with the change suggested by @JanMarvin and we can combine changes in there. PS We could fetch |
That worked out ok in the rev.dep check so I will make another PR. |
Closing as #1309 covered this. |
Prof Ripley emailed the following in a messaging concerning the earlier R_NO_MAP issue (that is apparently defered for a bit at CRAN, we did our bit here, he pointed me also to another issue in another package of mine now taken care of):
The text was updated successfully, but these errors were encountered: