From 679a52edd0e3902c4f9d745ac9300648be88828a Mon Sep 17 00:00:00 2001 From: fasiondog Date: Wed, 21 Aug 2024 15:08:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu_cpp/hikyuu/KDataImp.cpp | 1 - xmake.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hikyuu_cpp/hikyuu/KDataImp.cpp b/hikyuu_cpp/hikyuu/KDataImp.cpp index 18618c0f..bcca0799 100644 --- a/hikyuu_cpp/hikyuu/KDataImp.cpp +++ b/hikyuu_cpp/hikyuu/KDataImp.cpp @@ -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) { diff --git a/xmake.lua b/xmake.lua index f4c69673..4c51ea60 100644 --- a/xmake.lua +++ b/xmake.lua @@ -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")