XCB compiler warning - which line of C code is the issue?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times

XCB compiler warning - which line of C code is the issue?

Post by Jay Dee »

Hi, real noob question...
When compiling my FC with XCB I get a warning, I would like to just check its not going to be an issue. Program seems fine but I guess its good practice to check these things.
FC7_Reciever_Gen2_V1-18.c: 2742: (764) mismatched comparison (warning)
So I open the associated .C file and for the example above, do I need to find the line 2742 or 764 ?
Neither line seems obviously wrong to me?
Line764.PNG
Line 764
(14.35 KiB) Downloaded 2439 times
Line2742.PNG
Line 2742
(24.85 KiB) Downloaded 2439 times
Am I looking in the wrong place?
J.

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: XCB compiler warning - which line of C code is the issue

Post by medelec35 »

Hi J.
Its the 1st set on numbers i.e in your case will be the 2742

Martin
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: XCB compiler warning - which line of C code is the issue

Post by LeighM »

Also, you might get a more accurate view of the correct C code line if you use the inbuilt viewer, menu Build->View C
(due to CR/LF v LF miscounting)

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times

Re: XCB compiler warning - which line of C code is the issue

Post by Jay Dee »

Ah... thanks Martin and Leigh.
And Yes Leigh... it did move me down a few lines.

The warning seems to have been raised by a line in the Matrix I2C LDC scroll code
(FCD_0c591_lcd_I2C1__ScrollDisplay)
Line2742_2.PNG
Line 2742 ver2
(11.79 KiB) Downloaded 2426 times
Anyone see anything amiss ?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: XCB compiler warning - which line of C code is the issue

Post by LeighM »

I think that & should be &&
typo, doh!

Post Reply