How to retain unsed constant variables
Hello,
I define following constant string, indicating the program version.
static const char version_s[] __attribute__((used)) = "V.10";
This string isn't used in other part of code, but is only defined with the purpose to put in the binary file, a string easy to find, and to make the CRC over the code, depending from the program version.
However, I see that the version string is not included in the binary file, and consequently CRC doesn't depend on it.
Where is the mistake?
Thank you,
Carlo.
