diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
commit | 730964efd28b80be48ed35a215a362dde2b6b7a7 (patch) | |
tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /gnu/lib/libg++ | |
parent | c4d4a99d31762beef936f34571330923e9300da9 (diff) | |
download | FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.zip FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.tar.gz |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'gnu/lib/libg++')
-rw-r--r-- | gnu/lib/libg++/libg++/bitblt.c | 4 | ||||
-rw-r--r-- | gnu/lib/libg++/libg++/bitlcomp.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/filedoalloc.c | 1 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioprims.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/gnu/lib/libg++/libg++/bitblt.c b/gnu/lib/libg++/libg++/bitblt.c index f7c4322..a1cc71b 100644 --- a/gnu/lib/libg++/libg++/bitblt.c +++ b/gnu/lib/libg++/libg++/bitblt.c @@ -68,7 +68,7 @@ _BS_blt (op, pdst, dstbit, psrc, srcbit, length) case _BS_alu_nor: ca1 = ONES; cx1 = ONES; ca2 = ONES; cx2 = ONES; break; - case_BS_alu_equiv: + case _BS_alu_equiv: ca1 = 0; cx1 = ONES; ca2 = ONES; cx2 = ONES; break; case _BS_alu_invert: @@ -91,7 +91,7 @@ _BS_blt (op, pdst, dstbit, psrc, srcbit, length) return; } { -#define COMBINE(dst, src) ((dst) & ((src) & ca1 ^ cx1) ^ ((src) & ca2 ^ cx2)) +#define COMBINE(dst, src) ( ((dst) & ( ((src) & ca1) ^ cx1)) ^ ( ((src) & ca2) ^ cx2)) #include "bitdo2.h" } } diff --git a/gnu/lib/libg++/libg++/bitlcomp.c b/gnu/lib/libg++/libg++/bitlcomp.c index edf154c..9f0c0e0 100644 --- a/gnu/lib/libg++/libg++/bitlcomp.c +++ b/gnu/lib/libg++/libg++/bitlcomp.c @@ -67,7 +67,7 @@ _BS_lcompare_0 (ptr0, len0, ptr1, len1) len0 -= nwords0 * _BS_BITS_PER_WORD; len1 -= nwords1 * _BS_BITS_PER_WORD; if (len0 == 0 || len1 == 0) - return len0 == 0 - len1 == 0; + return (len0 == 0) - (len1 == 0); len0 &= _BS_BITS_PER_WORD - 1; len1 &= _BS_BITS_PER_WORD - 1; word0 = *ptr0++ & ~((_BS_word)(~0) _BS_RIGHT len0); diff --git a/gnu/lib/libg++/libio/filedoalloc.c b/gnu/lib/libg++/libio/filedoalloc.c index 92c5105..ac96d19 100644 --- a/gnu/lib/libg++/libio/filedoalloc.c +++ b/gnu/lib/libg++/libio/filedoalloc.c @@ -45,6 +45,7 @@ the executable file might be covered by the GNU General Public License. */ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> #ifdef __STDC__ #include <stdlib.h> #endif diff --git a/gnu/lib/libg++/libio/ioprims.c b/gnu/lib/libg++/libio/ioprims.c index 8164ba3..cf9cf93 100644 --- a/gnu/lib/libg++/libio/ioprims.c +++ b/gnu/lib/libg++/libio/ioprims.c @@ -31,6 +31,8 @@ the executable file might be covered by the GNU General Public License. */ #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> +#include <sys/uio.h> +#include <unistd.h> #ifdef TODO /* Add open, isatty */ |