Skip to content

Commit

Permalink
clean compile
Browse files Browse the repository at this point in the history
  • Loading branch information
andyD123 committed Sep 27, 2022
1 parent b5d36b8 commit 9cbcc95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GettingStarted/GettingStarted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void optionPricerDriver()

double optionPrice1 = blackScholes_1(S, K, t, r, sigma);



std::vector stl(100, 0.0);
std::iota(begin(stl), end(stl), 0.0);
Expand All @@ -778,6 +778,8 @@ void optionPricerDriver()

std::vector<double> prices = optionPrice3;

ignore(optionPrice1);


}

Expand Down
2 changes: 2 additions & 0 deletions accumulateExample/accumulate_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ void testMemCpy2()
for (long i = 0; i < loop; ++i)
{
volatile auto xx =std::memcpy(cp, vp, bufferSz);

ignore(xx);
}

auto endTime = std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit 9cbcc95

Please sign in to comment.