Skip to content

Commit 3e50982

Browse files
committed
[CPyCppyy] Make AppendsTypesSlow declare silent [upstream]
1 parent 5100e26 commit 3e50982

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bindings/pyroot/cppyy/cppyy-backend/clingwrapper/src/clingwrapper.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ bool Cppyy::AppendTypesSlow(const std::string& name,
727727
Cpp::Declare(code.c_str(), /*silent=*/true); // initialize the trampoline
728728

729729
std::string var = "__Cppyy_s" + std::to_string(struct_count++);
730-
// FIXME: We cannot use silent because it erases our error code from Declare!
731-
if (!Cpp::Declare(("__Cppyy_AppendTypesSlow<" + resolved_name + "> " + var +";\n").c_str(), /*silent=*/false)) {
730+
if (!Cpp::Declare(("__Cppyy_AppendTypesSlow<" + resolved_name + "> " + var +";\n").c_str(), /*silent=*/true)) {
732731
std::lock_guard<std::recursive_mutex> Lock(InterOpMutex);
733732
TCppType_t varN =
734733
Cpp::GetVariableType(Cpp::GetNamed(var.c_str(), /*parent=*/nullptr));

0 commit comments

Comments
 (0)