Fix 10 more warnings in the code

This commit is contained in:
Jasmine Iwanek
2024-06-10 19:36:33 -04:00
parent ec0998a089
commit 19f4d4f914
3 changed files with 1 additions and 15 deletions

View File

@@ -276,7 +276,7 @@ int json_parse(pcjs_t *dev)
}
/* Read and null terminate */
fread(buffer, sizeof(char), numbytes, dev->fp);
(void) !fread(buffer, sizeof(char), numbytes, dev->fp);
buffer[numbytes] = '\0';
cJSON *parsed_json = cJSON_Parse(buffer);
@@ -305,7 +305,6 @@ int json_parse(pcjs_t *dev)
const cJSON *each_track = NULL;
int total_c = 0;
int full_count = 0;
/* The diskData array is essentially [c][h][s] */
/* Start with the tracks in [c] */
@@ -422,7 +421,6 @@ int json_parse(pcjs_t *dev)
}
total_sectors++;
full_count++;
dev->calc_total_sectors = total_sectors;
/* End sectors */
}