diff --git a/tree/dataframe/inc/ROOT/RDF/Utils.hxx b/tree/dataframe/inc/ROOT/RDF/Utils.hxx index b1b0f9864c161..10313453f16aa 100644 --- a/tree/dataframe/inc/ROOT/RDF/Utils.hxx +++ b/tree/dataframe/inc/ROOT/RDF/Utils.hxx @@ -196,8 +196,7 @@ void InterpreterDeclare(const std::string &code); /// Jit code in the interpreter with TInterpreter::Calc, throw in case of errors. /// The optional `context` parameter, if present, is mentioned in the error message. -/// The pointer returned by the call to TInterpreter::Calc is returned in case of success. -Long64_t InterpreterCalc(const std::string &code, const std::string &context = ""); +void InterpreterCalc(const std::string &code, const std::string &context = ""); /// Whether custom column with name colName is an "internal" column such as rdfentry_ or rdfslot_ bool IsInternalColumn(std::string_view colName); diff --git a/tree/dataframe/src/RDFUtils.cxx b/tree/dataframe/src/RDFUtils.cxx index 22afbd4eff2a6..cb6f6857cc37b 100644 --- a/tree/dataframe/src/RDFUtils.cxx +++ b/tree/dataframe/src/RDFUtils.cxx @@ -342,8 +342,11 @@ void InterpreterDeclare(const std::string &code) } } -Long64_t InterpreterCalc(const std::string &code, const std::string &context) +void InterpreterCalc(const std::string &code, const std::string &context) { + if (code.empty()) + return; + R__LOG_DEBUG(10, RDFLogChannel()) << "Jitting and executing the following code:\n\n" << code << '\n'; TInterpreter::EErrorCode errorCode(TInterpreter::kNoError); // storage for cling errors @@ -374,8 +377,6 @@ Long64_t InterpreterCalc(const std::string &code, const std::string &context) callCalc(subs); } - - return 0; // we used to forward the return value of Calc, but that's not possible anymore. } bool IsInternalColumn(std::string_view colName)