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.
Tool/software: TI C/C++ Compiler
Hello,
My intention is to make the compiler throw a warning in order to discourage a developer from using a specific function (e.g because it is not optimized for the particular architecture). I don't want to use preprocessor #warning directive because it will always throw warnings even if this specific function is not used.
After a quick search, I found out that in GCC there is a specific attribute, to achieve this, which is the warning("message") function attribute. See here for details
As seen here the TI compiler supports many of the GCC extensions but the warning("message") does not seem to be supported.
Is there any alternative to this attribute(possibly natively in the TI compiler) ?
Alternatively, given its very similar with the deprecated attribute which is supported, is there any plan to make it available any time soon?
Edited syntax
Panagiotis Chatzistamatis said:Is there any alternative to this attribute(possibly natively in the TI compiler) ?
Unfortunately, no.
Panagiotis Chatzistamatis said:is there any plan to make it available any time soon?
It is likely it will be available in a future release. However, there is no specific plan. So I'm unable to give you a schedule.
Thanks and regards,
-George