http://ictr.club/wp/2020/04/06/queue_nedir/ yazısındaki
kodları derkerken hata alıyorum...
gcc ./kuyrukOrnek_01.c -o kuyrukOrnek_01
./kuyrukOrnek_01.c:12:30: hata: expected '}' before ';' token
12 | .q_inout_fixed_size = 0xFFFF;
| ^
./kuyrukOrnek_01.c:9:32: bilgi: to match this '{'
9 | struct queue_s uart_rx_queue = {
| ^
./kuyrukOrnek_01.c:16:24: UYARI: initialization of 'uint8_t *' {aka 'unsigned char *'} from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
16 | .q_buff_start_ptr = uart_tx_buffer,
| ^~~~~~~~~~~~~~
./kuyrukOrnek_01.c:16:24: bilgi: ('uart_tx_queue.q_buff_start_ptr' için near ilklendirme)
./kuyrukOrnek_01.c:18:49: hata: expected '}' before ';' token
18 | .q_inout_fixed_size = sizeof(uart_tx_buffer[0]);
| ^
./kuyrukOrnek_01.c:15:32: bilgi: to match this '{'
15 | struct queue_s uart_tx_queue = {
| ^