Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 581836 Details for
Bug 685142
media-video/avidemux-2.7.0 and media-libs/avidemux-plugins-2.7.0: error: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Werror=attributes]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add-patch-0001-avutil-mem-gcc9.patch
add-patch-0001-avutil-mem-gcc9.patch (text/plain), 1.55 KB, created by
Andrey Volkov
on 2019-07-03 08:49:36 UTC
(
hide
)
Description:
add-patch-0001-avutil-mem-gcc9.patch
Filename:
MIME Type:
Creator:
Andrey Volkov
Created:
2019-07-03 08:49:36 UTC
Size:
1.55 KB
patch
obsolete
>diff --git a/avidemux_core/ffmpeg_package/patches/0001-avutil-mem-gcc9.patch b/avidemux_core/ffmpeg_package/patches/0001-avutil-mem-gcc9.patch >new file mode 100644 >index 0000000..007179f >--- /dev/null >+++ b/avidemux_core/ffmpeg_package/patches/0001-avutil-mem-gcc9.patch >@@ -0,0 +1,30 @@ >+From 4361293fcf59edb56879c36edcd25f0a91e0edf8 Mon Sep 17 00:00:00 2001 >+From: Mark Harris <mark.hsj@gmail.com> >+Date: Sat, 24 Nov 2018 13:02:02 -0800 >+Subject: [PATCH] avutil/mem: Fix invalid use of av_alloc_size >+ >+The alloc_size attribute is valid only on functions that return a >+pointer. GCC 9 (not yet released) warns about invalid usage: >+ >+./libavutil/mem.h:342:1: warning: 'alloc_size' attribute ignored on a function returning int' [-Wattributes] >+ 342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); >+ | ^~~~~~~~~~~~~ >+ >+Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> >+--- >+ libavutil/mem.h | 2 +- >+ 1 file changed, 1 insertion(+), 1 deletion(-) >+ >+diff --git libavutil/mem.h libavutil/mem.h >+index 55ae573ac9a..5fb1a02dd9c 100644 >+--- libavutil/mem.h >++++ libavutil/mem.h >+@@ -339,7 +339,7 @@ av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size) >+ * @warning Unlike av_malloc(), the allocated memory is not guaranteed to be >+ * correctly aligned. >+ */ >+-av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); >++int av_reallocp_array(void *ptr, size_t nmemb, size_t size); >+ >+ /** >+ * Reallocate the given buffer if it is not large enough, otherwise do nothing.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 685142
: 581836