Skip to content

Commit

Permalink
Quiet warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Jan 26, 2024
1 parent 31b4fec commit 441a243
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/df1b2-separable/df1b2fn2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,19 @@ void df1b2variable::initialize(void)
{
df1b2variable::pool->sanity_check();
}
#endif
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
#endif
unsigned int nvar=((twointsandptr*)ptr)->ptr->nvar;
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#endif
size_t total_bytes=sizeof(df1b2_header)+sizeof(df1b2_header);
initialize(nvar);
}

Expand Down
11 changes: 11 additions & 0 deletions src/df1b2-separable/df1b2fn3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,19 @@ int df1b2_gradlist::write_pass1_pluseq(const df1b2variable * _px,
#endif
//int nvar=df1b2variable::nvar;
ADUNCONST(df1b2variable*,px)

#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
#endif
fixed_smartlist & nlist=f1b2gradlist->nlist;
test_smartlist& list=f1b2gradlist->list;
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#endif

size_t total_bytes=sizeof(df1b2_header)+sizeof(df1b2_header);
#if defined(SAFE_ALL)
Expand Down
14 changes: 14 additions & 0 deletions src/df1b2-separable/df1b2fn8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,22 @@ int df1b2_gradlist::write_pass1_minuseq(const df1b2variable * _px,
#endif
//int nvar=df1b2variable::nvar;
ADUNCONST(df1b2variable*,px)
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
#endif
fixed_smartlist & nlist=f1b2gradlist->nlist;
test_smartlist& list=f1b2gradlist->list;
fixed_smartlist & nlist=f1b2gradlist->nlist;
test_smartlist& list=f1b2gradlist->list;
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#endif

size_t total_bytes=sizeof(df1b2_header)+sizeof(df1b2_header);

size_t total_bytes=sizeof(df1b2_header)+sizeof(df1b2_header);
#if defined(SAFE_ALL)
Expand Down
2 changes: 1 addition & 1 deletion src/linad99/dtweedie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int imax2(int a, double v)
int b = static_cast<int>(v);
return a > b ? a : b;
}
int imin2(int a, int b)
unsigned int imin2(unsigned int a, unsigned int b)
{
return a < b ? a : b;
}
Expand Down

0 comments on commit 441a243

Please sign in to comment.