mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Fix more compile warnings
This commit is contained in:
@@ -280,8 +280,8 @@ machine_at_vectra500mt_init(const machine_t *model)
|
||||
if (bios_only || !ret)
|
||||
return ret;
|
||||
|
||||
machine_at_common_init_ex(model, 2);
|
||||
|
||||
machine_at_common_init_ex(model, 2);
|
||||
|
||||
pci_init(PCI_CONFIG_TYPE_1);
|
||||
pci_register_slot(0x00, PCI_CARD_NORTHBRIDGE, 0, 0, 0, 0);
|
||||
pci_register_slot(0x0F, PCI_CARD_SOUTHBRIDGE, 0, 0, 0, 0);
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define __USE_LARGEFILE64
|
||||
#ifndef __USE_LARGEFILE64
|
||||
#define __USE_LARGEFILE64 1
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
#if (defined(__HAIKU__) || defined(__unix__) || defined(__APPLE__)) && !defined(__linux__)
|
||||
|
||||
@@ -64,7 +64,7 @@ ddc_load_edid(char *path, uint8_t *buf, size_t size)
|
||||
|
||||
// Check the beginning of the file for the EDID header.
|
||||
uint64_t header;
|
||||
fread(&header, sizeof(header), 1, fp);
|
||||
(void) !fread(&header, sizeof(header), 1, fp);
|
||||
|
||||
if (header == EDID_HEADER) {
|
||||
// Binary format. Read as is
|
||||
|
||||
Reference in New Issue
Block a user