1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Fixed "statement has no effect" warnings.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3425 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-03-27 20:14:49 +00:00
parent dd21ca9e0b
commit 5e6ca22fe3

View File

@ -357,7 +357,7 @@ static void DrawFrame (register FrameDesc* F, char Active)
cvlinexy (F->fd_x2, y1, F->fd_height); cvlinexy (F->fd_x2, y1, F->fd_height);
/* If the window has static text associated, print the text */ /* If the window has static text associated, print the text */
textcolor (COLOR_TEXTLOW); (void) textcolor (COLOR_TEXTLOW);
Count = F->fd_textcount; Count = F->fd_textcount;
T = F->fd_text; T = F->fd_text;
while (Count--) { while (Count--) {
@ -366,7 +366,7 @@ static void DrawFrame (register FrameDesc* F, char Active)
} }
/* Set the old color */ /* Set the old color */
textcolor (OldColor); (void) textcolor (OldColor);
} }
@ -437,7 +437,7 @@ static void DisplayPrompt (char* s)
/* Clear the old prompt if there is one */ /* Clear the old prompt if there is one */
if (ActivePrompt) { if (ActivePrompt) {
textcolor (PromptColor); (void) textcolor (PromptColor);
chlinexy ((MAX_X - PromptLength) / 2, MAX_Y-1, PromptLength); chlinexy ((MAX_X - PromptLength) / 2, MAX_Y-1, PromptLength);
} }
@ -447,11 +447,11 @@ static void DisplayPrompt (char* s)
PromptLength = strlen (ActivePrompt); PromptLength = strlen (ActivePrompt);
/* Display the new prompt */ /* Display the new prompt */
textcolor (COLOR_TEXTHIGH); (void) textcolor (COLOR_TEXTHIGH);
cputsxy ((MAX_X - PromptLength) / 2, MAX_Y-1, ActivePrompt); cputsxy ((MAX_X - PromptLength) / 2, MAX_Y-1, ActivePrompt);
/* Restore the old color */ /* Restore the old color */
textcolor (PromptColor); (void) textcolor (PromptColor);
} }
@ -506,7 +506,7 @@ static char Input (char* Prompt, char* Buf, unsigned char Count)
/* Display the new prompt */ /* Display the new prompt */
OldColor = textcolor (COLOR_TEXTHIGH); OldColor = textcolor (COLOR_TEXTHIGH);
cputsxy (0, MAX_Y-1, Prompt); cputsxy (0, MAX_Y-1, Prompt);
textcolor (COLOR_TEXTLOW); (void) textcolor (COLOR_TEXTLOW);
/* Remember where we are, enable the cursor */ /* Remember where we are, enable the cursor */
x1 = wherex (); x1 = wherex ();
@ -535,7 +535,7 @@ static char Input (char* Prompt, char* Buf, unsigned char Count)
/* Reset settings, display old prompt line */ /* Reset settings, display old prompt line */
cursor (OldCursor); cursor (OldCursor);
textcolor (OldColor); (void) textcolor (OldColor);
DrawFrames (); DrawFrames ();
Frame = ActiveFrame; Frame = ActiveFrame;
ActiveFrame = -1; ActiveFrame = -1;
@ -1354,13 +1354,13 @@ static void RedrawStatic (char Frame)
ActiveFrame = -1; ActiveFrame = -1;
/* Clear the screen hide the cursor */ /* Clear the screen hide the cursor */
bordercolor (COLOR_BORDER); (void) bordercolor (COLOR_BORDER);
bgcolor (COLOR_BACKGROUND); (void) bgcolor (COLOR_BACKGROUND);
clrscr (); clrscr ();
cursor (0); cursor (0);
/* Build the frame layout of the screen */ /* Build the frame layout of the screen */
textcolor (COLOR_FRAMELOW); (void) textcolor (COLOR_FRAMELOW);
DrawFrames (); DrawFrames ();
/* Draw the prompt line */ /* Draw the prompt line */