#10833: build fails with gcc-14: -Wint-conversion in
libavfilter/vsrc_testsrc_vulkan.c
-------------------------------------+-------------------------------------
Reporter: Nicolas | Owner: (none)
Chauvet |
Type: defect | Status: new
Priority: normal | Component: avfilter
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Description changed by Nicolas Chauvet:
Old description:
> 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
> }}}
New description:
There is a build failure with some arches with gcc-14
https://fedoraproject.org/wiki/Changes/GNUToolchainF40
https://fedoraproject.org/wiki/Changes/PortingToModernC
It seems like the error only occurs for i686, but not for x86_64 or
aarch64.
{{{
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#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".