mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
build: re-enable clang-analyzer-optin.core.EnumCastOutOfRange check (#8095)
This commit is contained in:
@@ -13,7 +13,6 @@ Checks: >
|
||||
-cert-err58-cpp,
|
||||
-cert-int09-c,
|
||||
clang-analyzer-*,
|
||||
-clang-analyzer-optin.core.EnumCastOutOfRange,
|
||||
cppcoreguidelines-avoid-do-while,
|
||||
cppcoreguidelines-avoid-goto,
|
||||
cppcoreguidelines-avoid-reference-coroutine-parameters,
|
||||
|
||||
@@ -32,7 +32,7 @@ void tr_session_alt_speeds::update_minutes()
|
||||
|
||||
for (int day = 0; day < 7; ++day)
|
||||
{
|
||||
if ((static_cast<tr_sched_day>(settings_.use_on_these_weekdays) & (1 << day)) != 0)
|
||||
if ((settings_.use_on_these_weekdays & (1 << day)) != 0)
|
||||
{
|
||||
auto const begin = settings_.minute_begin;
|
||||
auto const end = settings_.minute_end > settings_.minute_begin ? settings_.minute_end :
|
||||
|
||||
Reference in New Issue
Block a user