Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
fix compile warnings
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2928
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Feb 11, 2019
1 parent a55f71c commit dfeebf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/runtime/systemimpl.c
Expand Up @@ -1999,7 +1999,7 @@ static modelicaPathEntry* getAllModelicaPaths(const char *name, size_t nlen, voi
/* fprintf(stderr, "found dir match: %ld %s - ok=%d\n", i, ent->d_name, ok); */
}
entlen = strlen(ent->d_name);
if (!ok && ((entlen > 3 && 0==strcmp(ent->d_name+entlen-3,".mo")) || entlen > 4 && 0==strcmp(ent->d_name+entlen-4,".moc")) && regularFileExistsInDirectory(mp,"",ent->d_name)) {
if (!ok && ((entlen > 3 && 0==strcmp(ent->d_name+entlen-3,".mo")) || (entlen > 4 && 0==strcmp(ent->d_name+entlen-4,".moc"))) && regularFileExistsInDirectory(mp,"",ent->d_name)) {
/* fprintf(stderr, "found match file: %ld %s - ok=%d\n", i, ent->d_name, ok); */
res[i].fileIsDir=0;
ok=1;
Expand Down
1 change: 1 addition & 0 deletions SimulationRuntime/c/Makefile.common
Expand Up @@ -283,6 +283,7 @@ install: bootstrap-dependencies $(LIBSIMULATION) $(LIBFMIRUNTIME) $(ALL_OBJS) fm
test ! `uname` = Darwin || install_name_tool -change libsundials_ida.2.dylib @rpath/libsundials_ida.2.dylib $(builddir_lib)/$(LIBSIMULATION)
test ! `uname` = Darwin || install_name_tool -change libsundials_nvecserial.0.dylib @rpath/libsundials_nvecserial.0.dylib $(builddir_lib)/$(LIBSIMULATION)
test ! `uname` = Darwin || install_name_tool -change libsundials_kinsol.1.dylib @rpath/libsundials_kinsol.1.dylib $(builddir_lib)/$(LIBSIMULATION)
test ! `uname` = Darwin || install_name_tool -change liblis.dylib @rpath/liblis.dylib $(builddir_lib)/$(LIBSIMULATION)
# copy fmi stuff
cp -p $(RUNTIME_HEADERS_FMU) ../fmi/export/fmi1/*.h \
../fmi/export/fmi1/fmu1_model_interface.c $(builddir_inc)/c/fmi1
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -520,7 +520,7 @@ int startNonInteractiveSimulation(int argc, char**argv, DATA* data, threadData_t
if(0 == retVal && omc_flag[FLAG_DATA_RECONCILE])
{
infoStreamPrint(LOG_STDOUT, 0, "DataReconciliation Starting!");
infoStreamPrint(LOG_STDOUT, 0, data->modelData->modelName);
infoStreamPrint(LOG_STDOUT, 0, "%s", data->modelData->modelName);
retVal = dataReconciliation(data, threadData);
infoStreamPrint(LOG_STDOUT, 0, "DataReconciliation Completed!");
}
Expand Down

0 comments on commit dfeebf2

Please sign in to comment.