Warnings when i use uart component
Posted: Mon Sep 09, 2019 4:49 pm
Hi
When i use a component like uart or gsm, during the compilation the compiler return me the following warnings
2G.c
3: warning: passing argument 1 of 'FCD_047b1_UART1__ReceiveString' discards 'volatile' qualifier from pointer target type [enabled by default]
FCV_ANSWER[0] = FCV_RECEINVE[5];
^
2G.c:967:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
//Local variable definitions
^
2G.c
3: warning: passing argument 1 of 'FCD_0ee11_gLCD_ILI9341__Print' discards 'volatile' qualifier from pointer target type [enabled by default]
mainendloop: goto mainendloop;
^
2G.c
6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
MX_UINT8 FCL_POS_STR;
^
the problem is both using the GSM component and the uart component.
These warnings multiply when you enter more lines of code.
In programs with many lines of code the warnings also appear for simple delays
or for comments
.
When i use a component like uart or gsm, during the compilation the compiler return me the following warnings
2G.c
FCV_ANSWER[0] = FCV_RECEINVE[5];
^
2G.c:967:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
//Local variable definitions
^
2G.c
mainendloop: goto mainendloop;
^
2G.c
MX_UINT8 FCL_POS_STR;
^
the problem is both using the GSM component and the uart component.
These warnings multiply when you enter more lines of code.
In programs with many lines of code the warnings also appear for simple delays

