Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4807 closed defect (duplicate)

Red warnings show up in OMEdit when compiling models

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: blocker Milestone:
Component: OMEdit Version:
Keywords: Cc:

Description

It has been a while since some red lines started appearing again in the OMEdit compilation window, no matter which model is compiled:

In file included from ScalablePowerGrids.Tests.GridBusSimpleControl_N_1_M_1.c:7:0:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/simulation/solver/perform_simulation.c: In function 'fmtInit':
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/simulation/solver/perform_simulation.c:179:27: warning: passing argument 1 of 'GC_asprintf' from incompatible pointer type [-Wincompatible-pointer-types]
       if (0 > GC_asprintf((char**)&fullFileName, "%s/%s", omc_flagValue[FLAG_OUTPUT_PATH], data->modelData->modelFilePrefix)) {
                           ^
In file included from C:/OpenModelica1.13.0-dev-64bit/include/omc/c/openmodelica_func.h:52:0,
                 from ScalablePowerGrids.Tests.GridBusSimpleControl_N_1_M_1_model.h:5,
                 from ScalablePowerGrids.Tests.GridBusSimpleControl_N_1_M_1.c:2:
C:/OpenModelica1.13.0-dev-64bit/include/omc/c/util/modelica_string.h:72:5: note: expected 'const char **' but argument is of type 'char **'
 int GC_asprintf(const char **strp, const char *fmt, ...);

I'm using OMEdit v1.13.0-dev-102-g86eb4414 (64-bit)
Connected to v1.13.0-dev-491-g85e616238 (64-bit) on Windows 10 Professional.

We shouldn't have this problems in the final release, so I am marking this as a blocker for 1.13.0

@adeas31, can you please take care of this and possibly reassign it to whomever can fix the problem?

Thanks!

Change History (2)

comment:1 by Martin Sjölund, 7 years ago

Milestone: 1.13.0
Resolution: duplicate
Status: newclosed

comment:2 by Francesco Casella, 7 years ago

Oops, sorry about that, I forgot to update to the latest nightly...

Note: See TracTickets for help on using tickets.