Task #801 - fixed.err
back to task #801download
Error: COMPILER_WARNING (CWE-563):
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: At global scope
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:54:20: warning[-Wunused-variable]: ‘MediaInfoLib::ADM_Dolby_1_1’ defined but not used
# 54 | static const char* ADM_Dolby_1_1 = " (additional constraint from Dolby Atmos Master ADM Profile v1.1)";
# | ^~~~~~~~~~~~~
# 52|
# 53| static const char* ADM_Dolby_1_0 = " (additional constraint from Dolby Atmos Master ADM Profile v1.0)";
# 54|-> static const char* ADM_Dolby_1_1 = " (additional constraint from Dolby Atmos Master ADM Profile v1.1)";
# 55|
# 56| //---------------------------------------------------------------------------
Error: COMPILER_WARNING (CWE-457):
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp: scope_hint: In member function ‘MediaInfoLib::File_Adm::Streams_Fill()’
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3035:41: warning[-Wmaybe-uninitialized]: ‘ChannelAssignment’ may be used uninitialized
# 3035 | if (ChannelAssignment != (size_t)-1 && speakerLabel_ChannelAssignment != ChannelAssignment) {
# | ^~~~~~~~~~~~~~~~~
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:2944:38: note: ‘ChannelAssignment’ was declared here
# 2944 | atmos_audioChannelFormatName ChannelAssignment;
# | ^~~~~~~~~~~~~~~~~
# 3033| }
# 3034| else {
# 3035|-> if (ChannelAssignment != (size_t)-1 && speakerLabel_ChannelAssignment != ChannelAssignment) {
# 3036| ChannelFormat.AddError(Error, ":audioChannelFormat" + to_string(i) + ":audioBlockFormat" + to_string(j) + ":speakerLabel:speakerLabel element value " + speakerLabel + " is not permitted, permitted value is " + Atmos_audioChannelFormat_Content[ChannelAssignment].SpeakerLabel + "" + ADM_Dolby_1_0);
# 3037| }
Error: COMPILER_WARNING (CWE-563):
libmediainfo-24.01-build/MediaInfoLib/Source/MediaInfo/Audio/File_Adm.cpp:3233:15: warning[-Wunused-variable]: unused variable ‘TrackUID’
# 3233 | auto& TrackUID = TrackUIDs[i];
# | ^~~~~~~~
# 3231| // Errors - TrackUID
# 3232| for (size_t i = 0; i < TrackUIDs.size(); i++) {
# 3233|-> auto& TrackUID = TrackUIDs[i];
# 3234| }
# 3235|