[vlc-devel] [PATCH] configure: fix compiler warning when using --enable-debug with --disable-optimizations

Steve Lhomme robux4 at gmail.com
Mon Feb 29 11:51:16 CET 2016


On Fri, Feb 26, 2016 at 7:19 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le 2016-02-26 10:29, Steve Lhomme a écrit :
>>
>> ---
>>  configure.ac | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index cd7ccbb..0624952 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -1016,7 +1016,7 @@ AS_IF([test "${enable_optimizations}" != "no"], [
>>    ])
>>    AS_IF([test "${ac_cv_c_fast_math}" = "no"], [VLC_RESTORE_FLAGS])
>>    AH_BOTTOM([
>> -#ifndef __FAST_MATH__
>> +#if !defined(__FAST_MATH__) && defined(NDEBUG)
>>  # ifndef _MSC_VER
>>  #  pragma STDC FENV_ACCESS OFF
>>  #  pragma STDC FP_CONTRACT ON
>
>
> Why?

To avoid this kind of warning on every line (gcc 5.3.0 on mingw):

../config.h:889:0: warning: ignoring #pragma STDC FENV_ACCESS
[-Wunknown-pragmas]
 #  pragma STDC FENV_ACCESS OFF
 ^


> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list