diff --git a/source/module_base/module_mixing/test/mixing_test.cpp b/source/module_base/module_mixing/test/mixing_test.cpp index ea0e2415d5..91e9f51866 100755 --- a/source/module_base/module_mixing/test/mixing_test.cpp +++ b/source/module_base/module_mixing/test/mixing_test.cpp @@ -9,6 +9,7 @@ #define DOUBLETHRESHOLD 1e-8 double ext_inner_product_mock(double* x1, double* x2) { + return 0.0; } class Mixing_Test : public testing::Test { diff --git a/source/module_elecstate/test/elecstate_pw_test.cpp b/source/module_elecstate/test/elecstate_pw_test.cpp index de14ac077c..70166741bc 100644 --- a/source/module_elecstate/test/elecstate_pw_test.cpp +++ b/source/module_elecstate/test/elecstate_pw_test.cpp @@ -104,10 +104,12 @@ void pseudopot_cell_vnl::radial_fft_q(base_devi template <> std::complex* pseudopot_cell_vnl::get_vkb_data() const { + return nullptr; } template <> std::complex* pseudopot_cell_vnl::get_vkb_data() const { + return nullptr; } template <> void pseudopot_cell_vnl::getvnl(base_device::DEVICE_CPU*, diff --git a/source/module_io/test_serial/read_input_test.cpp b/source/module_io/test_serial/read_input_test.cpp index c5dca55d07..d3c95d4149 100644 --- a/source/module_io/test_serial/read_input_test.cpp +++ b/source/module_io/test_serial/read_input_test.cpp @@ -25,6 +25,7 @@ namespace GlobalFunc { bool SCAN_BEGIN(std::ifstream& ifs, const std::string& TargetName, const bool restart, const bool ifwarn) { + return false; } } // namespace GlobalFunc namespace Global_File