-
Notifications
You must be signed in to change notification settings - Fork 133
Fixed issues with the #have_func calls and the "unused variable" warnings #238
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
Conversation
lib/nmatrix/nmatrix.rb:566: warning: assigned but unused variable - new_cap lib/nmatrix/lapack.rb:196: warning: assigned but unused variable - result
@@ -172,17 +172,17 @@ def gplusplus_version #:nodoc: | |||
# export CPLUS_INCLUDE_PATH=/usr/local/atlas/include | |||
# (substituting in the path of your cblas.h and clapack.h for the path I used). -- JW 8/27/12 | |||
|
|||
idefaults = {lapack: ["/usr/include/atlas"], | |||
idefaults = {lapack: ["/usr/local/atlas/include"], |
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.
Is this definitely safe to substitute on all systems? Perhaps add the new path to the front of the array instead of changing it? Unless the point is that having the original one at all breaks things?
This seems to work for me on Mac OS X. Here's my output from extconf:
I don't see any problems merging this since it's passing Ubuntu and passing Mac separately. Thanks for the excellent patch and great research. |
Fixed issues with the #have_func calls and the "unused variable" warnings
Okay, wait, now I'm confused. Why did you remove the function types after adding them in? |
Check out the long conversation here: #238 @cjfuller pointed out that the C code generated by Anyway, thanks for merging, and I think more research and tinkering is in order before we can get |
We don't reference the macro because I couldn't make it work. In some cases I have native versions of functions that could be called when ATLAS is unavailable, for example. And some ATLAS builds lack certain functions that others have. |
There was an error in the #have_func calls in extconf.rb, where the type of the function wasn't included.
There was also a warning that kept popping up because of unused variables. This popped up every time I ran my tests when including NMatrix.