diff options
author | Gary Langshaw <gary.langshaw@gmail.com> | 2021-08-20 07:06:03 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-21 20:54:08 +0700 |
commit | 6c3436d69fc6e9dfd0153f99abb4f8107424a232 (patch) | |
tree | a5af2c2bec124b412a9bab81313a50ca765c4be7 /libraries/libmp4v2/libmp4v2_gcc_narrowing.patch | |
parent | d9c895cb3b90d176ff6f6ae9aa1897d80109dc59 (diff) | |
download | slackbuilds-6c3436d69fc6e9dfd0153f99abb4f8107424a232.tar.gz slackbuilds-6c3436d69fc6e9dfd0153f99abb4f8107424a232.tar.xz |
libraries/libmp4v2: Use a safer patch.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | libraries/libmp4v2/libmp4v2_gcc_narrowing.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libraries/libmp4v2/libmp4v2_gcc_narrowing.patch b/libraries/libmp4v2/libmp4v2_gcc_narrowing.patch new file mode 100644 index 0000000000..7c3bf692d3 --- /dev/null +++ b/libraries/libmp4v2/libmp4v2_gcc_narrowing.patch @@ -0,0 +1,20 @@ +# +# libmp4v2_narrowing.patch +# +# Reduce LC_NONE by a power of 2 to prevent LongCode promotion to unsigned int +# causing "narrowing" errors in recent GCC. The value is still sufficiently high +# as not to clash with any character values. +# + +diff -Nurp libmp4v2-20191108_9084868.orig/libutil/Utility.h libmp4v2-20191108_9084868/libutil/Utility.h +--- libmp4v2-20191108_9084868.orig/libutil/Utility.h 2019-11-08 02:03:40.000000000 +0000 ++++ libmp4v2-20191108_9084868/libutil/Utility.h 2021-08-19 23:40:34.724030480 +0100 +@@ -52,7 +52,7 @@ class MP4V2_EXPORT Utility + { + protected: + enum LongCode { +- LC_NONE = 0xf0000000, // safe (cannot conflict with char values) ++ LC_NONE = 0x0f000000, // safe (cannot conflict with char values) + LC_DEBUG, + LC_VERBOSE, + LC_HELP, |