sahlberg / libnfs

NFS client library
Other
510 stars 200 forks source link

gcc 14.1.1 compilation issue #483

Closed RussianE39 closed 3 weeks ago

RussianE39 commented 1 month ago

In function 'libnfs_accepted_reply', inlined from 'libnfs_rpc_reply_body' at libnfs-zdr.c:571:8: libnfs-zdr.c:494:47: error: 'len' may be used uninitialized [-Werror=maybe-uninitialized] 494 | message_buffer.length = len; | ~~~~^~~ libnfs-zdr.c: In function 'libnfs_rpc_reply_body': libnfs-zdr.c:476:28: note: 'len' was declared here 476 | uint32_t maj, min, len, tmp; | ^~~

sahlberg commented 1 month ago

Thanks. I have pushed a change to current master that should avoid this.