Skip to content

Commit 651bf2a

Browse files
committed
Eliminate more warnings & fix one typo bug
1 parent 328f8c5 commit 651bf2a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

adplug/rix.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ inline void CrixPlayer::set_new_int()
221221
/*----------------------------------------------------------*/
222222
inline void CrixPlayer::Pause()
223223
{
224-
register uint16_t i;
224+
uint16_t i;
225225
pause_flag = 1;
226226
for(i=0;i<11;i++)
227227
switch_ad_bd(i);
@@ -437,7 +437,7 @@ inline void CrixPlayer::ad_a0b0l_reg(uint16_t index,uint16_t p2,uint16_t p3)
437437
/*--------------------------------------------------------------*/
438438
inline void CrixPlayer::rix_B0_pro(uint16_t ctrl_l,uint16_t index)
439439
{
440-
register int temp = 0;
440+
int temp = 0;
441441
if(rhythm == 0 || ctrl_l < 6) temp = modify[ctrl_l*2+1];
442442
else
443443
{
@@ -450,7 +450,7 @@ inline void CrixPlayer::rix_B0_pro(uint16_t ctrl_l,uint16_t index)
450450
/*--------------------------------------------------------------*/
451451
inline void CrixPlayer::rix_C0_pro(uint16_t ctrl_l,uint16_t index)
452452
{
453-
register uint16_t i = index>=12?index-12:0;
453+
uint16_t i = index>=12?index-12:0;
454454
if(ctrl_l < 6 || rhythm == 0)
455455
{
456456
ad_a0b0l_reg(ctrl_l,i,1);
@@ -486,7 +486,7 @@ inline void CrixPlayer::switch_ad_bd(uint16_t index)
486486
/*--------------------------------------------------------------*/
487487
inline void CrixPlayer::ins_to_reg(uint16_t index,uint16_t* insb,uint16_t value)
488488
{
489-
register uint16_t i;
489+
uint16_t i;
490490
for(i=0;i<13;i++) reg_bufs[index].v[i] = insb[i];
491491
reg_bufs[index].v[13] = value&3;
492492
ad_bd_reg(),ad_08_reg(),
@@ -564,7 +564,7 @@ inline void CrixPlayer::ad_a0b0_reg(uint16_t index)
564564
/*--------------------------------------------------------------*/
565565
inline void CrixPlayer::music_ctrl()
566566
{
567-
register int i;
567+
int i;
568568
for(i=0;i<11;i++)
569569
switch_ad_bd(i);
570570
}

android/app/src/main/cpp/native_midi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *rw)
5959
{
6060
char buf[4096];
6161
size_t bytes;
62-
while(bytes = SDL_RWread(rw, buf, sizeof(char), sizeof(buf)))
62+
while((bytes = SDL_RWread(rw, buf, sizeof(char), sizeof(buf))) > 0)
6363
fwrite(buf, sizeof(char), bytes, fp);
6464
fclose(fp);
6565

libmad/frame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int decode_header(struct mad_header *header, struct mad_stream *stream)
142142
/* layer */
143143
header->layer = 4 - mad_bit_read(&stream->ptr, 2);
144144

145-
if (header->layer == 4) {
145+
if ((int)header->layer == 4) {
146146
stream->error = MAD_ERROR_BADLAYER;
147147
return -1;
148148
}

uibattle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ PAL_BattleUIUpdate(
14371437

14381438
if (g_Battle.UI.wActionType == kBattleActionCoopMagic)
14391439
{
1440-
if (!PAL_BattleUIIsActionValid(kBattleActionCoopMagic))
1440+
if (!PAL_BattleUIIsActionValid(kBattleUIActionCoopMagic))
14411441
{
14421442
g_Battle.UI.state = kBattleUISelectMove;
14431443
break;

0 commit comments

Comments
 (0)