syntax errors on statements starting with __weak
Code compiles without error but when files created by Cube MX are opened the editor indicates the lines starting with __weak as containing a syntax error. In a previous post it was related that the Properties>C++ Build>>Settings>>Dialect needs to have Language set to Standard. I find no such setting, however I do see that the choices are blank, and three other ISO... selections. In my case it is blank. I find that changing to the other standards has no effect on the syntax error. An example of the error:
__weak uint32_t HAL_GetTick(void)
{
return uwTick;
}
The error is shown by a question mark at the far left of the first line beginning with __weak. However no further information is displayed regarding the nature of the error.
I think the error is not really an error. Any ideas how to make it right or make it go away?