Page 1 of 1

Warning during compiling - Strings

Posted: Fri Jul 02, 2021 12:15 am
by Kisen
Hi

I am getting the following warnings when compiling.
Can you guys tell me what the warnings are for, please.

v0.1.c:3890:2: warning: passing argument 3 of 'FCI_FLOAT_TO_STRING' discards 'volatile' qualifier from pointer target type [enabled by default]

C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC32BIT\PIC32BIT_CAL_String.c:542:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'

v0.1.c:3243:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'

I have about 20 warnings like this just repeating with different variables.
My program appears to be working fine even with the warnings, but when working on a big program and you get these warnings at the start, it kinda makes you feel like you are building on sand.

Re: Warning during compiling - Strings

Posted: Fri Jul 02, 2021 10:34 am
by BenR
Hello,

Yes the warnings are annoying. It's mainly because strings are expected to be of type signed char and Flowcode doesn't support signed chars. As you say there wont actually be an issue running on the MCU.

We are aware of the problem and have some ideas to try and reduce these warnings as you're right it's not ideal that they are generated.

Re: Warning during compiling - Strings

Posted: Fri Jul 02, 2021 10:46 am
by kersing
Hi Ben,

Isn’t there a compiler switch to switch these warnings off?