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
simsong opened this issue Jan 22, 2018 · 5 comments
Open

MAINT get rid of compiler warnings #3

simsong opened this issue Jan 22, 2018 · 5 comments

Comments

@simsong
Copy link

simsong commented Jan 22, 2018

From @larsmans on August 1, 2014 9:21

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

Copied from original issue: cjlin1/pull/3

@simsong
Copy link
Author

simsong commented Jan 22, 2018

From @cjlin1 on August 23, 2014 19:25

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:

cjlin1#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.*

@simsong
Copy link
Author

simsong commented Jan 22, 2018

From @larsmans on August 23, 2014 19:26

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

@simsong
Copy link
Author

simsong commented Jan 22, 2018

From @cjlin1 on August 29, 2014 4:39

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
Author

simsong commented Jan 22, 2018

Do you intend to take the pull request?

@simsong
Copy link
Author

simsong commented Jan 22, 2018

From @wvengen on February 13, 2017 11:10

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

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

No branches or pull requests

1 participant