i'm looking @ config uart on mcu. there structure describing status of uart below.
at beginning of main()
there line of code
uart_status_t uart_status __attribute__((unused)) = 0;
could explain line does?
thanks
it not structure enumeration. declaration sets uart_status uart_idle. gcc documentation states : [unused]means variable meant possibly unused. gcc not produce warning variable.
for gcc compiler directive, please see gcc.gnu.org/onlinedocs/gcc-3.2/gcc/variable-attributes.html
– clarasoft-it
Comments
Post a Comment