..\display.h(72): warning: #231-D: declaration is not visible outside of function
I got message when I included a header file containing this line:
void DISPLAY_string_date_time(const struct tm * tim, DISPLAY_MSG * p_message);
I found the problem - I hadn't included <time.h> in the two cases that caused the warning.
After a lot of searching for what this warning means, I can't find any explanation.
Can anyone translate what the compiler is saying?
That's probably because nothing has directly caused it; it is probably caused "indiectly" as a result of the compiler getting out-of-sync with the source text because of the original error(s) due to the missing header(s).
No. There are situations where this happens, and causes all kinds of weird messages from the compiler. But this is not one of them.
The warning message under discussion is fully justified, and its text points exactly at the problem.