Commit 334ee704 authored by Olivier Lantsoght's avatar Olivier Lantsoght

[Example] Removing warning in main.c of PendulumSpring123

parent a569c9b9
......@@ -45,7 +45,7 @@ int main(int argc, char const *argv[])
char *respath;
char *animpath;
MbsLoadOptions *opts;
MbsLoader *loader = mbs_new_loader();
opts = loader->opts;
......@@ -101,16 +101,16 @@ int main(int argc, char const *argv[])
mbs_equil->options->respath = strdup(respath);
mbs_equil->options->animpath = strdup(animpath);
mbs_run_equil(mbs_equil, mbs_data);
free(mbs_equil->options->respath);
free(mbs_equil->options->animpath);
free((void*)mbs_equil->options->respath);
free((void*)mbs_equil->options->animpath);
mbs_delete_equil(mbs_equil, mbs_data);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
/* MODAL ANALYSIS *
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
mbs_data->process = 3;
mbs_modal = mbs_new_modal(mbs_data);
// modal options (see documentations for additional options)
......@@ -121,9 +121,9 @@ int main(int argc, char const *argv[])
mbs_modal->options->respath = strdup(respath);
mbs_modal->options->animpath = strdup(animpath);
mbs_run_modal(mbs_modal, mbs_data);
free(mbs_modal->options->respath);
free(mbs_modal->options->animpath);
mbs_delete_modal(mbs_modal, mbs_data);
free((void*)mbs_modal->options->respath);
free((void*)mbs_modal->options->animpath);
mbs_delete_modal(mbs_modal, mbs_data);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
......@@ -144,8 +144,8 @@ int main(int argc, char const *argv[])
mbs_dirdyn->options->respath = strdup(respath);
mbs_dirdyn->options->animpath = strdup(animpath);
mbs_run_dirdyn(mbs_dirdyn, mbs_data);
free(mbs_dirdyn->options->respath);
free(mbs_dirdyn->options->animpath);
free((void*)mbs_dirdyn->options->respath);
free((void*)mbs_dirdyn->options->animpath);
mbs_delete_dirdyn(mbs_dirdyn, mbs_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment