-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some compiler warnings for Ubuntu 10.04 were eliminated.
- Loading branch information
info
committed
Nov 22, 2010
1 parent
e5e48b7
commit 530713c
Showing
4 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2005,2009 Ronald S. Burkey <[email protected]> | ||
Copyright 2005,2009-2010 Ronald S. Burkey <[email protected]> | ||
This file is part of yaAGC. | ||
|
@@ -56,6 +56,8 @@ | |
default is NULL, in which case PrintDownlinkList | ||
is used. If non-NULL, then whateverit points | ||
to is used in place of PrintDownlinkList. | ||
11/22/10 RSB Eliminated a compiler warning I suddenly | ||
encountered in Ubuntu 10.04. | ||
*/ | ||
|
||
|
@@ -2062,7 +2064,7 @@ DecodeErasableDump (char *Title) | |
{ | ||
int i, j, row, col; | ||
Sclear (); | ||
sprintf (&Sbuffer[0][0], Title); | ||
sprintf (&Sbuffer[0][0], "%s", Title); | ||
sprintf (&Sbuffer[1][0], "ID=%05o SYNC=%05o PASS=%o EBANK=%o TIME1=%05o", | ||
DownlinkListBuffer[0], DownlinkListBuffer[1], | ||
(DownlinkListBuffer[2] >> 11) & 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2003-2005,2008-2009 Ronald S. Burkey <[email protected]> | ||
Copyright 2003-2005,2008-2010 Ronald S. Burkey <[email protected]> | ||
This file is part of yaAGC. | ||
|
@@ -54,6 +54,8 @@ | |
readline() and rl_getc(). | ||
08/02/09 RSB Tried to make it work again without readline | ||
support. | ||
11/22/10 RSB Eliminated a compiler warning I encountered | ||
in Ubuntu 10.04. | ||
*/ | ||
|
||
#include <pthread.h> | ||
|
@@ -273,6 +275,10 @@ static void * nbfgetsThreadFunction (void *Arg) | |
} | ||
pthread_mutex_unlock(&nbfgetsMutex); | ||
} | ||
// This function doesn't actually return, but I've | ||
// put in the following line to avoid a compiler | ||
// warning in some compiler versions. | ||
return (NULL); | ||
} | ||
|
||
// Signals to the thread reading in the input from stdin to actually go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2003-2005,2009 Ronald S. Burkey <[email protected]> | ||
Copyright 2003-2005,2009-2010 Ronald S. Burkey <[email protected]> | ||
This file is part of yaAGC. | ||
|
@@ -46,6 +46,8 @@ | |
... undocumented changes apparently occurred here ... | ||
08/01/09 RSB Changed incorrect usage of returned string | ||
from readline(), which could be NULL. | ||
11/22/10 RSB Eliminated a compiler warning I encountered | ||
in Ubuntu 10.04. | ||
*/ | ||
|
||
#include <pthread.h> | ||
|
@@ -193,6 +195,10 @@ nbfgetsThreadFunction (void *Arg) | |
// Go to sleep until the string has been processed. | ||
pthread_cond_wait (&nbfgetsCond, &nbfgetsMutex); | ||
} | ||
// This function doesn't actually return, but I've | ||
// put in the following line to avoid a compiler | ||
// warning in some compiler versions. | ||
return (NULL); | ||
} | ||
|
||
// Signals to the thread reading in the input from stdin to actually go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters