3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-30 21:19:30 +00:00

Remove unnecessary c_str() calls from err_at_loc/warn_at_loc

This commit is contained in:
Robert O'Callahan 2025-09-12 06:18:03 +00:00
parent 8cd3c069d6
commit f4699e2b10
2 changed files with 13 additions and 13 deletions

View file

@ -51,7 +51,7 @@ static std::list<std::vector<std::string>> verilog_defaults_stack;
static void error_on_dpi_function(AST::AstNode *node)
{
if (node->type == AST::AST_DPI_FUNCTION)
err_at_loc(node->location, "Found DPI function %s.\n", node->str.c_str());
err_at_loc(node->location, "Found DPI function %s.\n", node->str);
for (auto& child : node->children)
error_on_dpi_function(child.get());
}