Hello,
I have a strange compiler report when compiling with this kind of calculation :
ASCII = "1000"
ASCII is declared as a String
The compiler report me this :
Flowcode1.c:90: warning: pointer targets in passing argument 1 of 'FCI_SCOPY' differ in signedness
Flowcode1.c:90: warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
In the real life, my code is working but as I have lots of calculation icon like this one, compilation take long time because of all those report.
It is something I'm doing wrong ?
Thank you for your help
Strange compiler report on Flowcode 6.1.0.0
Moderator: Benj
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Strange compiler report on Flowcode 6.1.0.0
You are not doing something wrong. Strictly speaking Flowcode is doing something wrong, the C code generated is not standards compliant as noted by the compiler. I would recommend to check the warnings (tedious as it might be) as these warnings may obscure warnings you need to take into account because of errors in your code.
Hopefully this will be solved in a future release.
Hopefully this will be solved in a future release.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Strange compiler report on Flowcode 6.1.0.0
No, it’s nothing you are doing wrong.
For historic reasons, Flowcode has ended up with a mix of signed and unsigned char definitions where strings are used. I think it’s in the plan to clean this all up at some point.
As you have found, you can ignore the warnings.
edit: As kersing makes a good point, to ensure these warnings are not hiding something that might need attention.
Especially as string concatenation (particularly when converting numbers) can give unexpected results.
For historic reasons, Flowcode has ended up with a mix of signed and unsigned char definitions where strings are used. I think it’s in the plan to clean this all up at some point.
As you have found, you can ignore the warnings.
edit: As kersing makes a good point, to ensure these warnings are not hiding something that might need attention.
Especially as string concatenation (particularly when converting numbers) can give unexpected results.