[FFmpeg-devel] [PATCH] Beautify build output making it easier to see compiler warnings

Luca Barbato lu_zero
Thu Mar 4 15:37:05 CET 2010


On 03/03/2010 05:57 PM, Georgi Chorbadzhiyski wrote:
> With this patch the build output will look similar to Linux Kernel kbuild and git.
> Something like this:
> 
>   CC         libavdevice/alldevices.c
> libavdevice/alldevices.c:32: warning: no previous prototype for 'avdevice_register_all'
>   CC         libavdevice/avdevice.c
>   CC         libavdevice/alsa-audio-common.c
>   CC         libavdevice/alsa-audio-dec.c
>   CC         libavdevice/alsa-audio-enc.c
>   CC         libavdevice/dv1394.c
>   CC         libavdevice/oss_audio.c
>   CC         libavdevice/v4l2.c
>   CC         libavdevice/v4l.c
>   RANLIB     libavdevice/libavdevice.a
>   CC         libavformat/allformats.c
>   CC         libavformat/cutils.c
>   CC         libavformat/metadata.c
> libavformat/metadata.c: In function 'av_metadata_set2':
> libavformat/metadata.c:70: warning: assignment discards qualifiers from pointer target type
> libavformat/metadata.c:74: warning: assignment discards qualifiers from pointer target type
>   CC         libavformat/metadata_compat.c
> libavformat/metadata_compat.c: In function 'ff_metadata_mux_compat':
> libavformat/metadata_compat.c:132: warning: the address of 'number' will always evaluate as 'true'
> libavformat/metadata_compat.c:133: warning: the address of 'number' will always evaluate as 'true'
>   CC         libavformat/options.c
>   CC         libavformat/os_support.c
> 
> This makes it very easy to see compiler warnings for example. If you want
> to see the whole command that make executes you may use
> 
> make Q=

Usually you call it with V=1, beside that I did something like that long
ago, yours seems less invasive since doesn't cover the install target.

lu

-- 

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero




More information about the ffmpeg-devel mailing list