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:
@@ -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)) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user