Closed inobelar closed 2 months ago
I compiled the project after configuring it with meson setup build -Dwarning_level=2 -Dwerror=true -Dc_std=gnu99
. At warning level 3, GLib conflicts with ISO-C for a warning categorized as "pedantic" so I targeted level 2.
There were some similar errors, I fixed them too.
I did not change the standard types to g* types yet. I am thinking of using one set of types over the entire project. Maybe I should change them all together.
gcc 13.2.0
produces the next warning:comparison of integers of different signs: 'int' and 'size_t'
(sincei
isint
, and compared oversize_t
insidefor
loop:i < paddint_byte_count
). This small PR fixes it.I also replaced
uint8_t
andsize_t
by equivalent types:guint8
andgsize
, due to passed arguments types:&naul->data[payload_offset]
isguint8*
payload_size
,map_info->maxsize
aregsize