These are merely warnings, hence the build does not fail.
They just tell you that the first part of your statement is superfluous as absolutely any value that variable may take on will satisfy the condition
But since you spent the time to type that statement the “new” compiler assumes you intended something other than you wrote and hence is kind enough to give you a heads-up while the old one just went with “don’t know, don’t care”
However, if you indeed meant what you wrote it would be much easier to just remove the startAddress >= 0 part of the statements entirely.
What you wrote is virtually the same as if (true && somethingElse) which is the same as if (somethingElse) but more complicated and hence “expensive”.
Hey ScruffR - ya I kinda get what the compiler is telling me, but this MCU branch is not my code and looks like it’s something to do with flash memory management.
Is this a deviceOS include, or something else?
If deviceOS, kinda didn’t expect to see any “just ignore it” warnings with 3.2.0, esp given it’s tagged for production use. If not deviceOS, then one of my includes is suspect and I’ll need to decide what to do about it.
I suppose I could do an empty setup/loop and see if it still happens