FreeBSD Bugzilla – Attachment 227916 Details for
Bug 258513
net-mgmt/pmacct: fix build with clang 13
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net-mgmt/pmacct: mark unused but set variables with attributes
net-mgmt__pmacct-fix-clang13-1.diff (text/plain), 1.46 KB, created by
Dimitry Andric
on 2021-09-15 13:34:19 UTC
(
hide
)
Description:
net-mgmt/pmacct: mark unused but set variables with attributes
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2021-09-15 13:34:19 UTC
Size:
1.46 KB
patch
obsolete
>commit 70f19614f734fbfbc0653ef61299e5b3a6775c51 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Wed Sep 15 15:28:58 2021 +0200 > > net-mgmt/pmacct: mark unused but set variables with attributes > >diff --git a/net-mgmt/pmacct/files/patch-src_nfprobe__plugin_netflow9.c b/net-mgmt/pmacct/files/patch-src_nfprobe__plugin_netflow9.c >new file mode 100644 >index 000000000000..6ba07373eba9 >--- /dev/null >+++ b/net-mgmt/pmacct/files/patch-src_nfprobe__plugin_netflow9.c >@@ -0,0 +1,11 @@ >+--- src/nfprobe_plugin/netflow9.c.orig 2020-05-10 13:57:54 UTC >++++ src/nfprobe_plugin/netflow9.c >+@@ -2233,7 +2233,7 @@ send_netflow_v9(struct FLOW **flows, int num_flows, in >+ >+ /* Refresh template headers if we need to */ >+ if (nf9_pkts_until_template <= 0) { >+- u_int16_t flows = 0, tot_len = 0; >++ u_int16_t flows = 0, tot_len __attribute__((unused)) = 0; >+ >+ memcpy(packet + offset, &v4_template, v4_template.tot_len); >+ offset += v4_template.tot_len; >diff --git a/net-mgmt/pmacct/files/patch-src_sflow.c b/net-mgmt/pmacct/files/patch-src_sflow.c >new file mode 100644 >index 000000000000..8a8df0620e6c >--- /dev/null >+++ b/net-mgmt/pmacct/files/patch-src_sflow.c >@@ -0,0 +1,11 @@ >+--- src/sflow.c.orig 2020-05-10 13:57:54 UTC >++++ src/sflow.c >+@@ -306,7 +306,7 @@ void decodeIPV4(SFSample *sample) >+ >+ void decodeIPV6(SFSample *sample) >+ { >+- u_int32_t label; >++ u_int32_t label __attribute__((unused)); >+ u_int32_t nextHeader; >+ u_char *end = sample->header + sample->headerLen; >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258513
: 227916