Is there any way to tell IAR to give some kind of warning if a recursive call can be done inside a routine?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
There is no way for the compiler to know it, unless a function calls itself (which usually is intentional).
If two function call each other but are in different .c files, there is no way for the compiler to see this. So it makes no sense to try to detect it when both functions are coincidentally in the same file. Either a warning will come always, or it should come never. Everything else is dangerous.
**Attention** This is a public forum