Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f830854c
Commit
f830854c
authored
May 10, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcc_err_unref=false should also allow unreferenced subroutines.
Submitted by: ehocdet Fixes #911
parent
1184eddd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
r00911.vtc
bin/varnishtest/tests/r00911.vtc
+20
-0
vcc_xref.c
lib/libvcl/vcc_xref.c
+4
-0
No files found.
bin/varnishtest/tests/r00911.vtc
0 → 100644
View file @
f830854c
varnishtest "vcc_err_unref should also cover subs"
server s1 {
rxreq
expect req.url == "/bar"
txresp -body "foobar"
} -start
varnish v1 -arg "-p vcc_err_unref=false" -vcl+backend {
sub foobar {
set req.http.foobar = "foobar";
}
} -start
client c1 {
txreq -url /bar
rxresp
expect resp.http.content-length == 6
expect resp.bodylen == 6
} -run
lib/libvcl/vcc_xref.c
View file @
f830854c
...
@@ -292,6 +292,10 @@ vcc_checkaction2(struct vcc *tl, const struct symbol *sym)
...
@@ -292,6 +292,10 @@ vcc_checkaction2(struct vcc *tl, const struct symbol *sym)
return
;
return
;
vsb_printf
(
tl
->
sb
,
"Function unused
\n
"
);
vsb_printf
(
tl
->
sb
,
"Function unused
\n
"
);
vcc_ErrWhere
(
tl
,
p
->
name
);
vcc_ErrWhere
(
tl
,
p
->
name
);
if
(
!
tl
->
err_unref
)
{
vsb_printf
(
tl
->
sb
,
"(That was just a warning)
\n
"
);
tl
->
err
=
0
;
}
}
}
int
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment