Fix 10 more warnings in the code
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user