diff options
author | Ori Bernstein <ori@eigenstate.org> | 2019-06-21 10:00:58 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2019-06-21 10:00:58 -0700 |
commit | d4bc9052beb3305d64a353a16641740380eb87af (patch) | |
tree | e90babcf3b3b295d9ad218cbf8f4e852df7e6d89 /sys/src/ape/lib/ap/gen/memcmp.c | |
parent | 0af7d1fe35093690f2d8dd0613b3bf3b777674c6 (diff) |
Turn on warnings when building libap.
For ape, we never enabled warnings in cflags.
Turning it on brings up a lot of warnings. Most are noise,
but a few caught unused variables and trunctaions of pointers.
to smaller integers (int, long).
A few warnings remain.
Diffstat (limited to 'sys/src/ape/lib/ap/gen/memcmp.c')
-rw-r--r-- | sys/src/ape/lib/ap/gen/memcmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/ape/lib/ap/gen/memcmp.c b/sys/src/ape/lib/ap/gen/memcmp.c index c07fbd0e9..e94ed8052 100644 --- a/sys/src/ape/lib/ap/gen/memcmp.c +++ b/sys/src/ape/lib/ap/gen/memcmp.c @@ -6,8 +6,8 @@ memcmp(const void *a1, const void *a2, size_t n) char *s1, *s2; unsigned c1, c2; - s1 = a1; - s2 = a2; + s1 = (char*)a1; + s2 = (char*)a2; while(n > 0) { c1 = *s1++; c2 = *s2++; |