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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ static void solve_l2r_l1l2_svr(
double d, G, H;
double Gmax_old = INF;
double Gmax_new, Gnorm1_new;
double Gnorm1_init;
double Gnorm1_init = 0.;
double *beta = new double[l];
double *QD = new double[l];
double *y = prob->y;
Expand Down Expand Up @@ -1409,7 +1409,7 @@ static void solve_l1r_l2_svc(
double d, G_loss, G, H;
double Gmax_old = INF;
double Gmax_new, Gnorm1_new;
double Gnorm1_init;
double Gnorm1_init = 0.;
double d_old, d_diff;
double loss_old, loss_new;
double appxcond, cond;
Expand Down Expand Up @@ -1699,7 +1699,7 @@ static void solve_l1r_lr(
double sigma = 0.01;
double w_norm, w_norm_new;
double z, G, H;
double Gnorm1_init;
double Gnorm1_init = 0.;
double Gmax_old = INF;
double Gmax_new, Gnorm1_new;
double QP_Gmax_old = INF;
Expand Down