[FFmpeg-trac] #10833(undetermined:new): build fails with gcc-14: -Wint-conversion in libavfilter/vsrc_testsrc_vulkan.c
FFmpeg
trac at avcodec.org
Tue Jan 30 12:15:08 EET 2024
#10833: build fails with gcc-14: -Wint-conversion in
libavfilter/vsrc_testsrc_vulkan.c
-------------------------------------+-------------------------------------
Reporter: Nicolas | Type: defect
Chauvet |
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
There is a build failure with some arches with gcc-14
https://fedoraproject.org/wiki/Changes/GNUToolchainF40
https://fedoraproject.org/wiki/Changes/PortingToModernC
{{{
In file included from libavfilter/vulkan.h:22,
from libavfilter/vulkan_filter.h:26,
from libavfilter/vsrc_testsrc_vulkan.c:24:
./libavutil/vulkan.h:227:1: note: the alignment of ‘_Atomic long long int’
fields changed in GCC 11.1
227 | } FFVkExecPool;
| ^
libavfilter/vsrc_testsrc_vulkan.c: In function ‘testsrc_vulkan_activate’:
libavfilter/vsrc_testsrc_vulkan.c:234:47: error: passing argument 6 of
‘ff_vk_filter_process_simple’ makes integer from pointer without a cast
[-Wint-conversion]
234 | NULL, &s->opts,
sizeof(s->opts));
| ^~~~
| |
| void *
libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long
long unsigned int’} but argument is of type ‘void *’
47 | VkSampler sampler, void *push_src,
size_t push_size);
| ~~~~~~~~~~^~~~~~~
libavfilter/vsrc_testsrc_vulkan.c:253:43: error: passing argument 6 of
‘ff_vk_filter_process_simple’ makes integer from pointer without a cast
[-Wint-conversion]
253 | NULL, &s->opts,
sizeof(s->opts));
| ^~~~
| |
| void *
libavfilter/vulkan_filter.h:47:43: note: expected ‘VkSampler’ {aka ‘long
long unsigned int’} but argument is of type ‘void *’
47 | VkSampler sampler, void *push_src,
size_t push_size);
| ~~~~~~~~~~^~~~~~~
make: *** [ffbuild/common.mak:81: libavfilter/vsrc_testsrc_vulkan.o] Error
1
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10833>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list