Warning during compiling - Strings

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Kisen
Posts: 12
http://meble-kuchenne.info.pl
Joined: Sun Jun 20, 2021 11:55 am
Has thanked: 2 times
Been thanked: 1 time

Warning during compiling - Strings

Post 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.

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Warning during compiling - Strings

Post 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.

kersing
Valued Contributor
Posts: 192
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 77 times
Been thanked: 64 times

Re: Warning during compiling - Strings

Post by kersing »

Hi Ben,

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

Post Reply