More compiler warnings
This commit is contained in:
commit
c6b6958cf3
3 changed files with 44 additions and 25 deletions
10
src/im.c
10
src/im.c
|
|
@ -570,7 +570,7 @@ static int charmap_load(CHARMAP * cm, const char *path)
|
|||
}
|
||||
else if (buf[0] == '#')
|
||||
{ /* Comment */
|
||||
fscanf(is, "%*[^\n]");
|
||||
scanned = fscanf(is, "%*[^\n]");
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
|
@ -1006,7 +1006,7 @@ static int im_event_zh_tw(IM_DATA * im, SDL_Event event)
|
|||
/* Left-Alt & Right-Alt mapped to mode-switch */
|
||||
case SDLK_RALT:
|
||||
case SDLK_LALT:
|
||||
cm.section = (++cm.section % SEC_TOTAL); /* Change section */
|
||||
cm.section = ((cm.section + 1) % SEC_TOTAL); /* Change section */
|
||||
im_softreset(im); /* Soft reset */
|
||||
|
||||
/* Set tip text */
|
||||
|
|
@ -1229,7 +1229,7 @@ static int im_event_th(IM_DATA * im, SDL_Event event)
|
|||
|
||||
/* Right-Alt mapped to mode-switch */
|
||||
case SDLK_RALT:
|
||||
cm.section = (++cm.section % SEC_TOTAL); /* Change section */
|
||||
cm.section = ((cm.section + 1) % SEC_TOTAL); /* Change section */
|
||||
im_softreset(im); /* Soft reset */
|
||||
|
||||
/* Set tip text */
|
||||
|
|
@ -1449,7 +1449,7 @@ static int im_event_ja(IM_DATA * im, SDL_Event event)
|
|||
|
||||
/* Right-Alt mapped to mode-switch */
|
||||
case SDLK_RALT:
|
||||
cm.section = (++cm.section % SEC_TOTAL); /* Change section */
|
||||
cm.section = ((cm.section + 1) % SEC_TOTAL); /* Change section */
|
||||
im_softreset(im); /* Soft reset */
|
||||
|
||||
/* Set tip text */
|
||||
|
|
@ -1699,7 +1699,7 @@ static int im_event_ko(IM_DATA * im, SDL_Event event)
|
|||
/* Right-Alt mapped to mode-switch */
|
||||
case SDLK_LALT:
|
||||
case SDLK_RALT:
|
||||
cm.section = (++cm.section % SEC_TOTAL); /* Change section */
|
||||
cm.section = ((cm.section + 1) % SEC_TOTAL); /* Change section */
|
||||
im_softreset(im); /* Soft reset */
|
||||
|
||||
/* Set tip text */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue