Skip to content

Commit 9cbcc95

Browse files
committed
clean compile
1 parent b5d36b8 commit 9cbcc95

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

GettingStarted/GettingStarted.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ void optionPricerDriver()
763763

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

766-
766+
767767

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

779779
std::vector<double> prices = optionPrice3;
780780

781+
ignore(optionPrice1);
782+
781783

782784
}
783785

accumulateExample/accumulate_example.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ void testMemCpy2()
395395
for (long i = 0; i < loop; ++i)
396396
{
397397
volatile auto xx =std::memcpy(cp, vp, bufferSz);
398+
399+
ignore(xx);
398400
}
399401

400402
auto endTime = std::chrono::high_resolution_clock::now();

0 commit comments

Comments
 (0)