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

MAINT get rid of compiler warnings #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

larsmans
Copy link

@larsmans larsmans commented Aug 1, 2014

Here's a patch from the scikit-learn fork of Liblinear. It doesn't do much, but it shuts up the compiler.

@larsmans larsmans changed the title MAINT get rid of compiler warnings from Liblinear MAINT get rid of compiler warnings Aug 1, 2014
@cjlin1
Copy link
Owner

cjlin1 commented Aug 23, 2014

We knew this problem but didn't think

double Gnorm1_init = 0.;

is a good thing because some may ask why the initial norm should
be set to zero. Is it better to use

double Gnorm1_init = NULL;

??

Lars Buitinck writes:

Here's a patch from the scikit-learn fork of Liblinear. It doesn't do
much, but it shuts up the compiler.


You can merge this Pull Request by running

git pull https://github.com/larsmans/liblinear master

Or view, comment on, or merge it at:

#3

Commit Summary

  • MAINT get rid of compiler warnings from Liblinear

File Changes

  • M linear.cpp (6)

Patch Links:


Reply to this email directly or view it on GitHub.*

@larsmans
Copy link
Author

NULL is not a valid value for a double because it's a pointer value.

@cjlin1
Copy link
Owner

cjlin1 commented Aug 29, 2014

Thanks. We plan to use -1 (rather than 0) now.

Lars Buitinck writes:

NULL is not a valid value for a double because it's a pointer value.


Reply to this email directly or view it on GitHub.*

@simsong
Copy link

simsong commented Sep 24, 2014

Do you intend to take the pull request?

@wvengen
Copy link

wvengen commented Feb 13, 2017

Sounds like a good idea, with -1 as an initial value.

@simsong
Copy link

simsong commented Jan 22, 2018

This issue was moved to angleto#3

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 this pull request may close these issues.

4 participants