Skip to content

Commit

Permalink
fixed other clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JosepMaJAZ committed Jun 18, 2024
1 parent 2b269fb commit 6357f54
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/private/cpu/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ enum { ABRT_NONE = 0, ABRT_GEN, ABRT_TS = 0xA, ABRT_NP = 0xB, ABRT_SS = 0xC, ABR
This distinction is used by the dynarec; a block that hits an 'expected' exception
would be compiled, a block that hits an 'unexpected' exception would be rejected so
that we don't end up with an unnecessarily short block*/
#define ABRT_EXPECTED 0x80
#define ABRT_EXPECTED ((int8_t)0x80)
extern uint32_t abrt_error;

void x86_doabrt(int x86_abrt);
Expand Down
2 changes: 1 addition & 1 deletion includes/private/models/pit.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern uint64_t PITCONST;
void pit_init();
void pit_ps2_init();
void pit_reset();
void pit_reset(PIT *pit);
void pit_set_gate(PIT *pit, int channel, int gate);
void pit_set_using_timer(PIT *pit, int t, int using_timer);
void pit_set_out_func(PIT *pit, int t, void (*func)(int new_out, int old_out));
Expand Down
2 changes: 1 addition & 1 deletion src/disc/disc.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void disc_stop(int drive) {
drive ^= fdd_swap;

if (drive < 2 && drives[drive].stop)
drives[drive].stop(drive);
drives[drive].stop();
}

void disc_set_drivesel(int drive) {
Expand Down
1 change: 1 addition & 0 deletions src/sound/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ int sound_card_has_config(int card) {
char *sound_card_get_internal_name(int card) {
if (sound_cards[card] != NULL)
return sound_cards[card]->internal_name;
return "error-no-name";
}

int sound_card_get_from_internal_name(char *s) {
Expand Down
1 change: 0 additions & 1 deletion src/sound/sound_adlibgold.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ static int treble_cut[6] = {
(int)(0.354 * 16384) /*-3 dB - filter output is at +6 dB*/
};

void adgold_timer_poll();
void adgold_update(adgold_t *adgold);

void adgold_update_irq_status(adgold_t *adgold) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/vid_s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ typedef struct s3_t {
#define INT_FIFO_EMP (1 << 3)
#define INT_MASK 0xf

void s3_updatemapping();
void s3_updatemapping(s3_t *s3);

void s3_accel_write(uint32_t addr, uint8_t val, void *p);
void s3_accel_write_w(uint32_t addr, uint16_t val, void *p);
Expand Down

0 comments on commit 6357f54

Please sign in to comment.