Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

warning and note inside fmu resource

warning and note inside fmu resource

Hallo,

i was looking around and found in resources/dynamic.log of my FMU interesting lines

Code:


In file included from MyFMU_FMU.c:54:0:
include/fmi2/fmu2_model_interface.c: In function 'omc_assert_fmi_common':
include/fmi2/fmu2_model_interface.c:162:16: warning: passing argument 1 of 'GC_vasprintf' from incompatible pointer type [-Wincompatible-pointer-types]
   GC_vasprintf(&str, msg, args);
                ^
In file included from include/openmodelica_func.h:52:0,
                 from MyFMU_FMU.c:10:
include/util/modelica_string.h:71:5: note: expected 'const char **' but argument is of type 'char **'
int GC_vasprintf(const char **strp, const char *fmt, va_list ap);
     ^

it doesnt seems to effect the behaviour of my model in fmuCheck and when I import it in simulink. just currious what is and why the warning exist

Best regards

Re: warning and note inside fmu resource

does anyone have any idea? i think it is one of the reason why i got so many undefined reference from my source code when compiling for a real-time application

There are 0 guests and 0 other users also viewing this topic
You are here: