prepare (1/3):
finished
make (2/3):
clang++ -std=c++14 -g -Wall -O3 -o main.o -c main.cpp
clang++ -std=c++14 -g -Wall -O3 -o client.o -c client.cpp
clang++ -std=c++14 -g -Wall -O3 -o market.o -c market.cpp
market.cpp:114:8: warning: unused variable 'result' [-Wunused-variable]
auto result = expireOrders.emplace(duration, std::move(temp));
^
1 warning generated.
clang++ -std=c++14 -g -Wall -O3 -o stock.o -c stock.cpp
stock.cpp:63:42: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^
stock.cpp:63:42: note: remove std::move call here
market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^~~~~~~~~~ ~
stock.cpp:63:95: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^
stock.cpp:63:95: note: remove std::move call here
market.trade(dealtPrice, dealtQuantity, std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^~~~~~~~~~ ~
stock.cpp:85:42: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^
stock.cpp:85:42: note: remove std::move call here
market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^~~~~~~~~~ ~
stock.cpp:85:97: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^
stock.cpp:85:97: note: remove std::move call here
market.trade(dealtPrice, dealtQuantity, std::move(dealingOrder->orderClient->getClientName()), std::move(it->second->orderClient->getClientName()), std::move(dealingOrder->getOrderStock()->stockName));
^~~~~~~~~~ ~
In file included from stock.cpp:8:
./stock.h:20:6: warning: private field 'timeStamp' is not used [-Wunused-private-field]
int timeStamp;
^
5 warnings generated.
clang++ -std=c++14 -g -Wall -O3 -o main main.o client.o market.o stock.o
finished
clean (3/3):
finished
all task finished, build successfully