Commit 7042f584 authored by Geoff Simmons's avatar Geoff Simmons

Turn on -Wextra, and silence a warning that it brought about.

parent ba187152
AM_CPPFLAGS = @VMOD_INCLUDES@ -Wall -Werror
AM_CPPFLAGS = @VMOD_INCLUDES@ -Wall -Werror -Wextra
CFLAGS += -std=c99
vmoddir = @VMOD_DIR@
......
......@@ -92,7 +92,8 @@ vmod_integer(VRT_CTX, VCL_BLOB b, VCL_ENUM padding)
{
VCL_INT i = 0;
if (b->len >= sizeof(VCL_INT))
assert(b->len >= 0);
if ((unsigned)b->len >= sizeof(VCL_INT))
return *((VCL_INT *) b->priv);
if (b->len == 0) {
ERR(ctx, "blob length is 0 in blob.integer()");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment