Skip to content

Commit

Permalink
Suppress warning C26813 false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
cjee21 committed Jan 30, 2025
1 parent 2cc85c9 commit ca1ca7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/MediaInfo/Audio/File_Adm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2828,6 +2828,8 @@ static void CheckErrors_ID_Additions(file_adm_private* File_Adm_Private, item it
};

//---------------------------------------------------------------------------
#pragma warning( push )
#pragma warning( disable : 26813 ) //false positive "Use 'bitwise and' to check if a flag is set."
static void CheckErrors_formatLabelDefinition(file_adm_private* File_Adm_Private, item item_Type, size_t i, const label_info& label_Info) {
const bool IsAtmos = File_Adm_Private->IsAtmos;
auto& Item = File_Adm_Private->Items[item_Type].Items[i];
Expand Down Expand Up @@ -2893,6 +2895,7 @@ static void CheckErrors_formatLabelDefinition(file_adm_private* File_Adm_Private
}
}
};
#pragma warning( pop )

//---------------------------------------------------------------------------
static void CheckErrors_Attributes(file_adm_private* File_Adm_Private, item Item_Type, const vector<size_t>& Attributes_Counts) {
Expand Down

0 comments on commit ca1ca7a

Please sign in to comment.