[FFmpeg-devel] [PATCH] lavc/pthread: do not re-define _GNU_SOURCE if already defined.

Michael Niedermayer michaelni at gmx.at
Mon Dec 24 00:44:22 CET 2012


On Sun, Dec 23, 2012 at 10:51:15PM +0100, Clément Bœsch wrote:
> This fixes the following warning with GCC:
>     libavcodec/pthread.c:35:0: warning: _GNU_SOURCE redefined [enabled by default]
>     <command-line>::0: note: this is the location of the previous definition
> 
> The reason of the presence of this flag is:
>     % pkg-config --cflags sdl
>     -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL
> ---
>  libavcodec/pthread.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

LGTM

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121224/3b4a8fca/attachment.asc>


More information about the ffmpeg-devel mailing list