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.

Compiler/TMS320DM6467T: Detecting K&R style of function declaration

Part Number: TMS320DM6467T

Tool/software: TI C/C++ Compiler


In customer codes, there are mixed function declarations.
One is K&R style:

int fuc (argc)
int argc
return argc;

Another is ANCI-C style:

int fuc(int argc)
return argc;

Customer wants to detect all K&R style declarations and re-write them to ANSI-C style.

Is it possible to specify TI ARM/DSP compilers to detect these declarations as errors?

And is there a list of all diagnostic num so that customer can solve similar questions by themselves ?

Thanks and regards,
Koichiro Tashiro