Hi champs,
We can use diagnostic options to suppress specific diagnostic id.
Is there any method to suppress diagnostic id of specific function? For example, suppress all the warning messages from A_function()?
Regards,
Luke
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.
Hi champs,
We can use diagnostic options to suppress specific diagnostic id.
Is there any method to suppress diagnostic id of specific function? For example, suppress all the warning messages from A_function()?
Regards,
Luke
Matthew,
With below function we will get warning message #994-D missing return statement at end of non-void function "A_function".
long A_function(void)
{
/* do something in this function */
}
And this warning message applies to all functions that missing return statement, right? My customer wants to know is it possible to suppress all the warning messages generated by specific function.
For example, both A_function and B_function are missing return statement, CCS suppress the warning message of A_function and shows the warning of B_function, is it possible?
Regards,
Luke
Hi Luke,
Please see the below presentation. Specifically the section on "Diagnostics" starting at slide 30:
https://software-dl.ti.com/ccs/esd/documents/images/c28x_compiler_tips.pdf
Hope this helps
ki