libmd: build with WARNS=1

- build with WARNS=1. This works without any changes
- remove two unused variables noticed at WARNS=2
This commit is contained in:
Eitan Adler 2018-05-23 11:20:16 +00:00
parent 6d6e62dcc3
commit 272b99f722
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334090
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ SRCS= md4c.c md5c.c md4hl.c md5hl.c \
INCS= md4.h md5.h ripemd.h sha.h sha256.h sha384.h sha512.h sha512t.h \
skein.h skein_port.h skein_freebsd.h skein_iv.h
WARNS?= 0
WARNS?= 1
MAN+= md4.3 md5.3 ripemd.3 sha.3 sha256.3 sha512.3 skein.3
MLINKS+=md4.3 MD4Init.3 md4.3 MD4Update.3 md4.3 MD4Final.3

View File

@ -54,8 +54,7 @@ MDXFdChunk(int fd, char *buf, off_t ofs, off_t len)
{
unsigned char buffer[16*1024];
MDX_CTX ctx;
struct stat stbuf;
int readrv, e;
int readrv;
off_t remain;
if (len < 0) {