Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
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)
return
;
vsb_printf
(
tl
->
sb
,
"Function unused
\n
"
);
vcc_ErrWhere
(
tl
,
p
->
name
);
if
(
!
tl
->
err_unref
)
{
vsb_printf
(
tl
->
sb
,
"(That was just a warning)
\n
"
);
tl
->
err
=
0
;
}
}
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