移除多余变量

This commit is contained in:
fasiondog 2024-08-21 15:08:22 +08:00
parent 7c980545e0
commit 679a52edd0
2 changed files with 1 additions and 2 deletions

View File

@ -359,7 +359,6 @@ void KDataImp::_recoverEqualBackward() {
Datetime end_date(m_buffer.back().datetime.date() + bd::days(1));
StockWeightList weightList = m_stock.getWeight(start_date, end_date);
StockWeightList::const_reverse_iterator weightIter = weightList.rbegin();
StockWeightList::const_reverse_iterator pre_weightIter;
size_t pre_pos = total - 1;
for (; weightIter != weightList.rend(); ++weightIter) {

View File

@ -208,7 +208,7 @@ if is_plat("windows") then
end
end
if not is_plat("windows") then
if is_plat("linux", "cross", "macosx") then
-- disable some compiler errors
add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing")
add_cxflags("-ftemplate-depth=1023", "-pthread")