Re: [libav-devel] [PATCH] compat/atomics: use the alternate GCC keyword __typeof__

2016-11-30 Thread Wan-Teh Chang
Hi Rémi, On Wed, Nov 30, 2016 at 1:46 PM, Rémi Denis-Courmont wrote: > > I´d hazard a guess that in C11 mode, you should use the compiler´s > , rather than libav´s variant of my compatibility wrapper. > > At least, I did not intend it to be used in C11 mode. I am using gcc

[libav-devel] [PATCH] compat/atomics: use the alternate GCC keyword __typeof__

2016-11-30 Thread Wan-Teh Chang
When compiling with -std=c11, the typeof keyword in compat/atomics/gcc/stdatomic.h generates a compiler warning: implicit declaration of function ‘typeof’. Using __typeof__ instead of typeof is recommended in https://gcc.gnu.org/onlinedocs/gcc/Typeof.html