Skip to content

Commit

Permalink
Fix warning about invalid identifier
Browse files Browse the repository at this point in the history
A recent change to make the epfmi library unique caused the possiblity
of the library name starting with a numeric character, which triggers a
warning.

This change is to prefix the library name with "epfmi_"

ref lbl-srg/modelica-buildings#2956
ref lbl-srg/modelica-buildings#2220
  • Loading branch information
kbenne committed Apr 14, 2022
1 parent 64328a0 commit 5aaaca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fmugenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void energyplusToFMU(const std::string &jsoninput,
spawn_fs::create_directories(outputroot);
}

const auto id = util::uniqueId();
const auto id = std::string("epfmi_") + util::uniqueId();

const auto modelDescriptionPath = fmuStagingPath / "modelDescription.xml";
const auto fmuResourcesPath = fmuStagingPath / "resources";
Expand Down

0 comments on commit 5aaaca7

Please sign in to comment.