Skip to content

Commit 6586977

Browse files
authored
[all] Fix warning according to #3889 (#382)
* Fix warning according to #3889 * fix warnings in PythonEnv: strcmp, hidden overload
1 parent bb7d9fd commit 6586977

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

Plugin/src/SofaPython3/PythonEnvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void PythonEnvironment::Init()
289289
for( const auto& elem : map)
290290
{
291291
Plugin p = elem.second;
292-
if ( p.getModuleName() == sofa_tostring(SOFA_TARGET) )
292+
if ( strcmp(p.getModuleName(), sofa_tostring(SOFA_TARGET)) == 0 )
293293
{
294294
pluginLibraryPath = elem.first;
295295
}

Plugin/src/SofaPython3/PythonEnvironment.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ class SOFAPYTHON3_API PythonEnvironment
119119
/// to be able to react when a scene is loaded
120120
struct SceneLoaderListerner : public SceneLoader::Listener
121121
{
122+
using SceneLoader::Listener::rightBeforeLoadingScene;
122123
/// possibly unload python modules to force importing their eventual modifications
123124
virtual void rightBeforeLoadingScene();
124125
static SceneLoaderListerner* getInstance() {

bindings/Sofa/src/SofaPython3/Sofa/Simulation/Submodule_Simulation.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ PYBIND11_MODULE(Simulation, simulation)
5656
sofa::simulation::core::init();
5757
sofa::simulation::graph::init();
5858

59-
if(!sofa::simulation::getSimulation())
60-
sofa::simulation::setSimulation(new DAGSimulation());
61-
6259
simulation.doc() =sofapython3::doc::simulation::Class;
6360

6461
simulation.def("print", [](Node* n){ sofa::simulation::node::print(n); }, sofapython3::doc::simulation::print);

0 commit comments

Comments
 (0)