Skip to content

Commit 54c4fb0

Browse files
committed
silence erroneous __typeof__ declarations in Cppyy::GetType
These errors are expected but should not be visible. Follow up work is to mimise the associated parsing
1 parent 3fbbfea commit 54c4fb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ Cppyy::TCppType_t Cppyy::GetType(const std::string &name, bool enable_slow_looku
775775
std::string id = "__Cppyy_GetType_" + std::to_string(var_count++);
776776
std::string using_clause = "using " + id + " = __typeof__(" + name + ");\n";
777777

778-
if (!Cpp::Declare(using_clause.c_str(), /*silent=*/false)) {
778+
if (!Cpp::Declare(using_clause.c_str(), /*silent=*/true)) {
779779
TCppScope_t lookup = Cpp::GetNamed(id, 0);
780780
TCppType_t lookup_ty = Cpp::GetTypeFromScope(lookup);
781781
return Cpp::GetCanonicalType(lookup_ty);

0 commit comments

Comments
 (0)