Integrated: 8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14
Alexander Matveev
almatvee at openjdk.org
Fri Apr 25 18:53:01 UTC 2025
On Wed, 23 Apr 2025 23:26:23 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> - Fixed gcc 14 compiler errors.
>
>
> ../../../gstreamer-lite/gstreamer/gst/gstclock.c: In function 'gst_clock_entry_new':
> ../../../gstreamer-lite/gstreamer/gst/gstclock.c:178:48: error: passing argument 1 of 'g_weak_ref_init' from incompatible pointer type [-Wincompatible-pointer-types]
> 178 | #define GST_CLOCK_ENTRY_CLOCK_WEAK_REF(entry) (&((GstClockEntryImpl *)(entry))->clock)
> | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | |
> | GWeakRef **
> ../../../gstreamer-lite/gstreamer/gst/gstclock.c:274:20: note: in expansion of macro 'GST_CLOCK_ENTRY_CLOCK_WEAK_REF'
> 274 | g_weak_ref_init (GST_CLOCK_ENTRY_CLOCK_WEAK_REF (entry), clock);
>
>
>
> ../../../plugins/av/videodecoder.c: In function 'videodecoder_dispose':
> ../../../plugins/av/videodecoder.c:202:31: error: passing argument 1 of 'basedecoder_close_decoder' from incompatible pointer type [-Wincompatible-pointer-types]
> 202 | basedecoder_close_decoder(decoder);
>
>
>
> ../../../plugins/av/videodecoder.c: In function 'videodecoder_convert_frame':
> ../../../plugins/av/videodecoder.c:548:50: error: passing argument 2 of 'decoder->sws_scale_func' from incompatible pointer type [-Wincompatible-pointer-types]
> 548 | base->frame->data,
> | ~~~~~~~~~~~^~~~~~
> | |
> | uint8_t ** {aka unsigned char **}
> ../../../plugins/av/videodecoder.c:548:50: note: expected 'const uint8_t * const*' {aka 'const unsigned char * const*'} but argument is of type 'uint8_t **' {aka 'unsigned char **'}
This pull request has now been integrated.
Changeset: 3fdd2138
Author: Alexander Matveev <almatvee at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/3fdd21386d6db96294fcecd80afc25d09732c067
Stats: 7 lines in 2 files changed: 4 ins; 0 del; 3 mod
8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14
Reviewed-by: kcr, arapte
-------------
PR: https://git.openjdk.org/jfx/pull/1794
More information about the openjfx-dev
mailing list