From: David Levine Date: Fri, 6 Jan 2012 03:36:51 +0000 (-0600) Subject: Fixed trivial compile warnings. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=648c015ca70b15edf41d80aa87314ade3252d140;p=mmh Fixed trivial compile warnings. --- diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 97a0b4a..8d03836 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -126,10 +126,11 @@ cpnumber(char **dest, int num, unsigned int wid, char fill, size_t n) { static void cptrimmed(char **dest, char *str, unsigned int wid, char fill, size_t n) { int remaining; /* remaining output width available */ - int c, ljust, w; + int c, ljust; int end; /* number of input bytes remaining in str */ #ifdef MULTIBYTE_SUPPORT int char_len; /* bytes in current character */ + int w; wchar_t wide_char; #endif char *sp; /* current position in source string */ diff --git a/sbr/pidwait.c b/sbr/pidwait.c index f454161..5ea87c5 100644 --- a/sbr/pidwait.c +++ b/sbr/pidwait.c @@ -11,6 +11,7 @@ #include #include #include +#include int pidwait (pid_t id, int sigsok) diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index efa9ad3..8e09591 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -19,6 +19,7 @@ #include #include #include +#include extern int debugsw; diff --git a/uip/termsbr.c b/uip/termsbr.c index 93e6dd6..f30a058 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -54,7 +54,7 @@ short ospeed; char PC; # endif -#endif notdef_lyndon_posix +#endif /* notdef_lyndon_posix */ static long speedcode;