Tool/software:
Hi experts,
When my customer compiled software using mspm0_sdk, he found many warnings.
CCS: v12.8.0
SDK: v2.01.00.03
Q1: If it is possible for the user to fix (remove) these warnings, could you tell me how to do so?
Q2: Also, are there plans to fix these warnings as part of the SDK?
Since this contains customer information, only the error content has been excerpted.
#1 main.c:364:10: warning: passing argument 1 of 'memset' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] 364 | memset( s_aEventBuffer, 0U, sizeof( s_aEventBuffer ) ); | ^~~~~~~~~~~~~~ #2 gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/string.h:33:9: note: expected 'void *' but argument is of type 'volatile SCommonEventData *' {aka 'volatile struct <anonymous> *'} 33 | void * memset (void *, int, size_t); | ^~~~~~ #3 main.c:571:29: warning: cast from function call of type 'uint32_t' {aka 'long unsigned int'} to non-matching type 'double' [-Wbad-function-cast] 571 | byRetVal = (uint8_t) ceil( (double) getVoltage() / VOLTAGE ); | ^ #4 main.c:571:13: warning: cast from function call of type 'double' to non-matching type 'unsigned char' [-Wbad-function-cast] 571 | byRetVal = (uint8_t) ceil( (double) getVoltage() / VOLTAGE ); | ^ #5 I2C.c:57:61: warning: passing argument 2 of 'DL_I2C_fillTargetTXFIFO' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers] 57 | byFIFOWriteSize = DL_I2C_fillTargetTXFIFO( LPI2C2_INST, &s_pSendData[s_bySendIndex], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ #6 dl_i2c.h:980:57: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'volatile uint8_t *' {aka 'volatile unsigned char *'} 980 | uint8_t DL_I2C_fillTargetTXFIFO(I2C_Regs *i2c, uint8_t *buffer, uint8_t count); | ~~~~~~~~~^~~~~~ #7 startup_mspm0l130x_gcc.c:58:6: warning: no previous prototype for 'initStub' [-Wmissing-prototypes] 58 | void initStub(void){;}
Best regards,
O.H