varnish / libvmod-digest

Digest and HMAC vmod
Other
50 stars 27 forks source link

Clean up compiler warnings #16

Closed rezan closed 8 years ago

rezan commented 8 years ago

There are several compiler warnings in master:

vmod_digest.c:354:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (j = 0; j < blocksize; j++) {
                ^
vmod_digest.c:357:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert((hexptr-hexenc)<(2*blocksize + 3));
                         ^
/opt/varnish/varnish-4.1.0/include/varnish/vas.h:58:8: note: in definition of macro 'assert'
  if (!(e)) {       \
        ^
vmod_digest.c:425:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i<mhash_get_block_size(hash);i++) {
               ^