Skip to content

Commit

Permalink
Ignore msvc warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed Feb 13, 2024
1 parent a9d4f14 commit 67f4056
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions src/df1b2-separable/df1b2fn2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,12 @@ void df1b2variable::initialize(void)
df1b2variable::pool->sanity_check();
}
#endif
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
unsigned int nvar=((twointsandptr*)ptr)->ptr->nvar;
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#if (__cplusplus >= 201703L)
[[maybe_unused]]
Expand Down
12 changes: 4 additions & 8 deletions src/df1b2-separable/df1b2fn8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,13 @@ 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
#ifdef _MSC_VER
#pragma warning disable 4458
#endif
fixed_smartlist & nlist=f1b2gradlist->nlist;
test_smartlist& list=f1b2gradlist->list;
#ifdef DEBUG
#ifdef _MSC_VER
#pragma warning restore 4458
#endif
#ifdef _MSC_VER
#pragma warning restore 4458
#endif

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

0 comments on commit 67f4056

Please sign in to comment.