My customer is compiling some code and came across a warnign that said:
"ti/dm814x/cgt6x_7_3_5/include/gsm.h", line 90: warning #48-D: incompatible redefinition of macro "round" (ti/dm814x/cgt6x_7_3_5/include/math.h")
I notice in the c55x compiler user guide there is a Note about this:
Definitions of Function round
NOTE:
Both the header files math.h and gsm.h contain definitions for the function round. (The
former introduces the round function defined by the C99 standard.) Thus, a conflict will occur
if both of these header files are included in the same file. Including the two files in the same
source file results in a warning of an incompatible redefinition of the macro round.
The diagnostic is only a warning and the last encountered definition of round will be used.
The warning may be turned into an error using the -pdse48 option or "#pragma
DIAG_ERROR 48".
SPRU281G
–
However, I don't see anything similar in teh C6000 C compiler guide. Is this considered a user error where they include gsm.h and math.h together? Coudl there be a reason they would need to include both and if so how can this be avoided?
I'm waiting to get hte test case from the customer but I figured I'd check this in the meantime.
Rgds
-Dipa-