[FFmpeg-user] -Wlto-type-mismatch
Reindl Harald
h.reindl at thelounge.net
Sat Apr 21 15:48:58 EEST 2018
https://ffmpeg.org/releases/ffmpeg-4.0.tar.xz
well, build with lto would show such things
./configure --enable-lto --extra-cflags "-flto=8 -ffat-lto-objects
-fwhole-program" --extra-ldflags="--enable-lto --extra-cflags "-flto=8
-ffat-lto-objects -fwhole-program"
you sadly need "-flto=8" (in fact -flto=%(nproc) within a rpm-spec)
additionally to --enable-lto because otherwise the build takes ages
because it uses only one CPU because "make -j8" is not inherited
src/libavformat/rtpdec_formats.h:41:5: warning: type of
'ff_h264_handle_aggregated_packet' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/video.h:27:10: warning: type of
'ff_null_get_video_buffer' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/internal.h:427:5: warning: type of
'ff_filter_init_hw_frames' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:160:5: warning: type of
'ff_outlink_get_status' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:147:6: warning: type of 'ff_inlink_set_status'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/filters.h:141:6: warning: type of
'ff_inlink_request_frame' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:88:5: warning: type of
'ff_inlink_consume_frame' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:102:5: warning: type of
'ff_inlink_consume_samples' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:110:5: warning: type of
'ff_inlink_make_frame_writable' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:74:5: warning: type of
'ff_inlink_check_available_samples' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:67:5: warning: type of
'ff_inlink_check_available_frame' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/filters.h:133:5: warning: type of
'ff_inlink_acknowledge_status' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/internal.h:244:6: warning: type of
'ff_avfilter_link_set_out_status' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/internal.h:256:6: warning: type of 'ff_tlog_link' does
not match original declaration [-Wlto-type-mismatch]
src/libavfilter/internal.h:238:6: warning: type of
'ff_avfilter_link_set_in_status' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/internal.h:332:5: warning: type of 'ff_request_frame'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/internal.h:332:5: warning: type of 'ff_request_frame'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/internal.h:272:5: warning: type of 'ff_insert_pad' does
not match original declaration [-Wlto-type-mismatch]
src/libavfilter/video.h:39:10: warning: type of 'ff_get_video_buffer'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/audio.h:50:10: warning: type of
'ff_null_get_audio_buffer' does not match original declaration
[-Wlto-type-mismatch]
src/libavfilter/audio.h:61:10: warning: type of 'ff_get_audio_buffer'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/internal.h:362:5: warning: type of 'ff_filter_frame'
does not match original declaration [-Wlto-type-mismatch]
src/libavfilter/internal.h:362:5: warning: type of 'ff_filter_frame'
does not match original declaration [-Wlto-type-mismatch]
More information about the ffmpeg-user
mailing list