Skip to contentSkip to conversation

Warnings with gcc 13.1.1

DISCUSSION Marcel Holtmann 1 participant 1 message May 9, 2023

lore
Share & tools
lore
#0 lore raw

CC src/band.o
src/band.c: In function ‘band_freq_to_ht_chandef’:
src/band.c:1263:9: error: ‘width’ may be used uninitialized [-Werror=maybe-uninitialized]

1263 |         switch (width) {
     |         ^~~~~~

src/band.c:1202:33: note: ‘width’ was declared here
1202 | enum band_chandef_width width;
| ^~~~~

CC src/eap.o
In function ‘eap_handle_response’,
inlined from ‘eap_rx_packet’ at src/eap.c:570:3:
src/eap.c:421:49: error: ‘vendor_id’ may be used uninitialized [-Werror=maybe-uninitialized]
421 | (type == EAP_TYPE_EXPANDED && vendor_id == (id) && vendor_type == (t))

     |                                       ~~~~~~~~~~^~~~~~~
src/eap.c:533:20: note: in expansion of macro ‘IS_EXPANDED_RESPONSE’
 533 |         } else if (IS_EXPANDED_RESPONSE(our_vendor_id, our_vendor_type))
     |                    ^~~~~~~~~~~~~~~~~~~~
src/eap.c: In function ‘eap_rx_packet’:
src/eap.c:431:18: note: ‘vendor_id’ was declared here
 431 |         uint32_t vendor_id;
     |                  ^~~~~~~~~
In function ‘eap_handle_response’,
   inlined from ‘eap_rx_packet’ at src/eap.c:570:3:
src/eap.c:421:57: error: ‘vendor_type’ may be used uninitialized [-Werror=maybe-uninitialized]
 421 |         (type == EAP_TYPE_EXPANDED && vendor_id == (id) && vendor_type == (t))
     |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/eap.c:533:20: note: in expansion of macro ‘IS_EXPANDED_RESPONSE’
 533 |         } else if (IS_EXPANDED_RESPONSE(our_vendor_id, our_vendor_type))
     |                    ^~~~~~~~~~~~~~~~~~~~
src/eap.c: In function ‘eap_rx_packet’:
src/eap.c:432:18: note: ‘vendor_type’ was declared here
 432 |         uint32_t vendor_type;
     |                  ^~~~~~~~~~~

CC src/eap.o
In function ‘eap_handle_response’,
inlined from ‘eap_rx_packet’ at src/eap.c:570:3:
src/eap.c:421:57: error: ‘vendor_type’ may be used uninitialized [-Werror=maybe-uninitialized]

 421 |         (type == EAP_TYPE_EXPANDED && vendor_id == (id) && vendor_type == (t))
     |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
src/eap.c:533:20: note: in expansion of macro ‘IS_EXPANDED_RESPONSE’
 533 |         } else if (IS_EXPANDED_RESPONSE(our_vendor_id, our_vendor_type))
     |                    ^~~~~~~~~~~~~~~~~~~~
src/eap.c: In function ‘eap_rx_packet’:
src/eap.c:432:18: note: ‘vendor_type’ was declared here
 432 |         uint32_t vendor_type;
     |                  ^~~~~~~~~~~