mtd: fix build with GCC 14
authorRui Salvaterra <rsalvaterra@gmail.com>
Tue, 7 May 2024 12:56:05 +0000 (13:56 +0100)
committerRui Salvaterra <rsalvaterra@gmail.com>
Sun, 12 May 2024 11:49:39 +0000 (12:49 +0100)
commitda0cd9d764a39ef60b1594b82721d77b241034d4
tree2ec1a63232982b7feefd19125d37ed89bb2a9177
parentc758d6427c40e7518f0a85ce607930335c88e56f
mtd: fix build with GCC 14

Also fix a couple of warnings while at it.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
package/system/mtd/src/trx.c