1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-05-04 23:36:16 +00:00

gcc 9 warnings fixes

This commit is contained in:
Gerald Schnabel
2020-05-01 21:13:27 +02:00
committed by gyurco
parent bd08ba6c91
commit cef0e420f1
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ void data_io_rom_upload(char *rname, char mode) {
user_io_change_into_core_dir();
strcpy(s, " ROM");
strncpy(s, rname, strlen(rname));
strncpy(s, rname, strlen(rname) < 8 ? strlen(rname) : 8);
iprintf("rom upload '%s' %d\n", s, sizeof(f));
if (FileOpenDir(&f, s, iCurrentDirectory)) {

View File

@@ -6,7 +6,7 @@
// on blocks 0 and 1. All other blocks within the first cylinder will be translated into the hardfile
struct RigidDiskBlock {
unsigned long rdb_ID; // "RDSK"
unsigned long rdb_ID __attribute__ ((aligned(4))); // "RDSK"
unsigned long rdb_Summedlongs; // 0x40
long rdb_ChkSum; // Sum to zero
unsigned long rdb_HostID; // 0x07
@@ -70,7 +70,7 @@ struct DosEnvec {
struct PartitionBlock {
unsigned long pb_ID; // "PART"
unsigned long pb_ID __attribute__ ((aligned(4))); // "PART"
unsigned long pb_Summedlongs; // 0x40
long pb_ChkSum; // Sum to zero
unsigned long pb_HostID; // 0x07