Skip to content

MAINT get rid of compiler warnings#3

Open
larsmans wants to merge 1 commit into
cjlin1:masterfrom
larsmans:master
Open

MAINT get rid of compiler warnings#3
larsmans wants to merge 1 commit into
cjlin1:masterfrom
larsmans:master

Conversation

@larsmans

@larsmans larsmans commented Aug 1, 2014

Copy link
Copy Markdown

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

cjlin1 commented Aug 23, 2014

Copy link
Copy Markdown
Owner

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
Copy Markdown
Author

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

@cjlin1

cjlin1 commented Aug 29, 2014

Copy link
Copy Markdown
Owner

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

simsong commented Sep 24, 2014

Copy link
Copy Markdown

Do you intend to take the pull request?

@wvengen

wvengen commented Feb 13, 2017

Copy link
Copy Markdown

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

@simsong

simsong commented Jan 22, 2018

Copy link
Copy Markdown

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