Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Compile errors, GCC 10 #35

Open
Rush opened this issue Nov 22, 2020 · 0 comments
Open

Compile errors, GCC 10 #35

Rush opened this issue Nov 22, 2020 · 0 comments

Comments

@Rush
Copy link

Rush commented Nov 22, 2020

Compilation errors:

npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ]
npm ERR! ../external/mp4v2/lib/src/mp4.cpp: In function ‘mp4v2::impl::MP4File* ConstructMP4File()’:
npm ERR! ../external/mp4v2/lib/src/mp4.cpp:49:17: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]
npm ERR!    49 |     catch( std::bad_alloc ) {
npm ERR!       |                 ^~~~~~~~~
npm ERR! ../external/mp4v2/lib/src/mp4.cpp: In function ‘bool MP4AddIPodUUID(MP4FileHandle, MP4TrackId)’:
npm ERR! ../external/mp4v2/lib/src/mp4.cpp:4497:21: warning: catching polymorphic type ‘class std::bad_alloc’ by value [-Wcatch-value=]
npm ERR!  4497 |         catch( std::bad_alloc ) {
npm ERR!       |                     ^~~~~~~~~
npm ERR! ../external/mp4v2/lib/src/bmff/typebmff.cpp:518:1: warning: missing initializer for member ‘mp4v2::impl::Enum<mp4v2::impl::bmff::LanguageCode, mp4v2::impl::bmff::ILC_UNDEFINED>::Entry::compact’ [-Wmissing-field-initializers]
npm ERR!   518 | };
npm ERR!       | ^
npm ERR! ../external/mp4v2/lib/src/bmff/typebmff.cpp:518:1: warning: missing initializer for member ‘mp4v2::impl::Enum<mp4v2::impl::bmff::LanguageCode, mp4v2::impl::bmff::ILC_UNDEFINED>::Entry::formal’ [-Wmissing-field-initializers]
npm ERR! ../external/mp4v2/lib/src/mp4file.cpp: In member function ‘void mp4v2::impl::MP4File::AddNeroChapter(MP4Timestamp, const char*)’:
npm ERR! ../external/mp4v2/lib/src/mp4file.cpp:2475:16: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
npm ERR!  2475 |         strncpy( buffer, chapterTitle, len );
npm ERR!       |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../external/mp4v2/lib/src/mp4file.cpp:2474:39: note: length computed here
npm ERR!  2474 |         int len = min((uint32_t)strlen(chapterTitle), (uint32_t)255);
npm ERR!       |                                 ~~~~~~^~~~~~~~~~~~~~
npm ERR! ../external/mp4v2/lib/src/mp4file.cpp: In member function ‘void mp4v2::impl::MP4File::AddChapter(MP4TrackId, MP4Duration, const char*)’:
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant