mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
relay: Comment out a unused variable for now
We keep it around until libevent is fixed, it should be used again. In the meantime, avoid the compiler to complain of this unused variable. https://gitlab.torproject.org/dgoulet/tor/-/jobs/43358#L1522 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
bae6780e70
commit
7c2c749d89
@ -124,6 +124,8 @@ fill_tcp_exhaustion_values(void)
|
|||||||
metrics_store_entry_update(sentry, rep_hist_get_n_tcp_exhaustion());
|
metrics_store_entry_update(sentry, rep_hist_get_n_tcp_exhaustion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* NOTE: Disable the record type label until libevent is fixed. */
|
||||||
|
#if 0
|
||||||
/** Helper array containing mapping for the name of the different DNS records
|
/** Helper array containing mapping for the name of the different DNS records
|
||||||
* and their corresponding libevent values. */
|
* and their corresponding libevent values. */
|
||||||
static struct dns_type {
|
static struct dns_type {
|
||||||
@ -135,6 +137,7 @@ static struct dns_type {
|
|||||||
{ .name = "AAAA", .type = DNS_IPv6_AAAA },
|
{ .name = "AAAA", .type = DNS_IPv6_AAAA },
|
||||||
};
|
};
|
||||||
static const size_t num_dns_types = ARRAY_LENGTH(dns_types);
|
static const size_t num_dns_types = ARRAY_LENGTH(dns_types);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Fill function for the RELAY_METRICS_NUM_DNS_ERRORS metrics. */
|
/** Fill function for the RELAY_METRICS_NUM_DNS_ERRORS metrics. */
|
||||||
static void
|
static void
|
||||||
@ -166,7 +169,6 @@ fill_dns_error_values(void)
|
|||||||
static const size_t num_errors = ARRAY_LENGTH(errors);
|
static const size_t num_errors = ARRAY_LENGTH(errors);
|
||||||
|
|
||||||
/* NOTE: Disable the record type label until libevent is fixed. */
|
/* NOTE: Disable the record type label until libevent is fixed. */
|
||||||
(void) num_dns_types;
|
|
||||||
#if 0
|
#if 0
|
||||||
for (size_t i = 0; i < num_dns_types; i++) {
|
for (size_t i = 0; i < num_dns_types; i++) {
|
||||||
/* Dup the label because metrics_format_label() returns a pointer to a
|
/* Dup the label because metrics_format_label() returns a pointer to a
|
||||||
|
Loading…
Reference in New Issue
Block a user