Skip to content

Commit 12003e1

Browse files
authored
Merge pull request #729 from FtZPetruska/fix-mingw-warnings
Fix warnings on mingw
2 parents 376fecc + 1b24b1b commit 12003e1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

prboom2/src/SDL/i_sndfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static sf_count_t sfvio_tell(void *user_data)
5151
return mem_ftell((MEMFILE *)user_data);
5252
}
5353

54-
void *Load_SNDFile(void *data, SDL_AudioSpec *sample, void **sampledata,
54+
void *Load_SNDFile(const void *data, SDL_AudioSpec *sample, void **sampledata,
5555
Uint32 *samplelen)
5656
{
5757
SNDFILE *sndfile;

prboom2/src/SDL/i_sndfile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "SDL_audio.h"
2020

21-
void *Load_SNDFile(void *data, SDL_AudioSpec *sample, void **sampledata,
21+
void *Load_SNDFile(const void *data, SDL_AudioSpec *sample, void **sampledata,
2222
Uint32 *samplelen);
2323

2424
#endif

prboom2/src/SDL/i_sound.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static snd_data_t *GetSndData(int sfxid, const unsigned char *data, size_t len)
234234
void *sampledata;
235235
Uint32 samplelen = (Uint32)len;
236236

237-
if (Load_SNDFile((void *)data, &sample, &sampledata, &samplelen) == NULL)
237+
if (Load_SNDFile(data, &sample, &sampledata, &samplelen) == NULL)
238238
{
239239
lprintf(LO_WARN, "Can't open sfx file: %s\n", S_sfx[sfxid].name);
240240
return NULL;

prboom2/src/e6y.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ int force_singletics_to = 0;
732732

733733
int HU_DrawDemoProgress(int force)
734734
{
735-
extern float mouse_hide_timer;
735+
extern int mouse_hide_timer;
736736
static unsigned int last_update = 0;
737737
static int prev_len = -1;
738738

prboom2/src/f_finale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ void F_BunnyScroll (void)
825825
laststage = stage;
826826
}
827827

828-
sprintf (name,"END%i",stage);
828+
snprintf(name, sizeof name, "END%i", stage);
829829
// CPhipps - patch drawing updated
830830
V_DrawNamePatch((320-13*8)/2, (200-8*8)/2, 0, name, CR_DEFAULT, VPT_STRETCH);
831831
}

0 commit comments

Comments
 (0)