Hi,
i have code like this (simplified):
void test2(char buffer[5])
{
buffer[0] = 'A';
}
void test(void)
{
char buf[5] = { 0 };
test2(buf);
}
CCS (6.1.0 through 6.1.2) outputs this advice:
(ULP 8.1) variable "buf" is used as a constant. Recommend declaring variable as either 'static const' or 'const'
It is definitely no constant. So the advice is not correct. But i wonder if there is a better (more efficient, more clean, ...) way to call a function with an array parameter (especially with pure C on MSP430)?
Am i doing something that CCS/MSP430/whatever doesn't like?
Regards
Sebastian