mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix warnings in current debian-hardened CI.
We're getting "fallback annotation annotation in unreachable code" warnings when we build with ALL_BUGS_ARE_FATAL. This patch fixes that. Fixes bug 40241. Bugfix on 0.3.5.4-alpha.
This commit is contained in:
@@ -2263,7 +2263,9 @@ entry_guards_note_guard_success(guard_selection_t *gs,
|
||||
break;
|
||||
default:
|
||||
tor_assert_nonfatal_unreached();
|
||||
#ifndef ALL_BUGS_ARE_FATAL
|
||||
FALLTHROUGH;
|
||||
#endif
|
||||
case GUARD_CIRC_STATE_USABLE_IF_NO_BETTER_GUARD:
|
||||
if (guard->is_primary) {
|
||||
/* XXXX #20832 -- I don't actually like this logic. It seems to make
|
||||
|
||||
@@ -819,7 +819,9 @@ rend_client_report_intro_point_failure(extend_info_t *failed_intro,
|
||||
log_warn(LD_BUG, "Unknown failure type %u. Removing intro point.",
|
||||
failure_type);
|
||||
tor_fragile_assert();
|
||||
#ifndef ALL_BUGS_ARE_FATAL
|
||||
FALLTHROUGH;
|
||||
#endif
|
||||
case INTRO_POINT_FAILURE_GENERIC:
|
||||
rend_cache_intro_failure_note(failure_type,
|
||||
(uint8_t *)failed_intro->identity_digest,
|
||||
|
||||
Reference in New Issue
Block a user