From: <sv...@op...> - 2025-03-07 20:09:15
|
Author: manx Date: Fri Mar 7 21:08:57 2025 New Revision: 22990 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22990 Log: Merged revision(s) 20682-20683 from trunk/OpenMPT: [Var] vorbis: Silence GCC false-positive warning. ........ [Var] vorbis: Silence GCC false-positive warning. ........ Modified: branches/OpenMPT-1.29/ (props changed) branches/OpenMPT-1.29/include/vorbis/OpenMPT.txt branches/OpenMPT-1.29/include/vorbis/lib/lpc.c branches/OpenMPT-1.29/include/vorbis/lib/psy.c Modified: branches/OpenMPT-1.29/include/vorbis/OpenMPT.txt ============================================================================== --- branches/OpenMPT-1.29/include/vorbis/OpenMPT.txt Fri Mar 7 21:08:13 2025 (r22989) +++ branches/OpenMPT-1.29/include/vorbis/OpenMPT.txt Fri Mar 7 21:08:57 2025 (r22990) @@ -4,6 +4,7 @@ symbian, test, vq) have been removed. - https://github.com/xiph/vorbis/pull/100 and https://github.com/xiph/vorbis/pull/101 have been applied. +- GCC warnings in lib/lpc.c and lib/psy.c have been silenced. - All modifications have been marked with /* OpenMPT */. - For building, premake is used to generate Visual Studio project files. See ../build/premake/ for details. Modified: branches/OpenMPT-1.29/include/vorbis/lib/lpc.c ============================================================================== --- branches/OpenMPT-1.29/include/vorbis/lib/lpc.c Fri Mar 7 21:08:13 2025 (r22989) +++ branches/OpenMPT-1.29/include/vorbis/lib/lpc.c Fri Mar 7 21:08:57 2025 (r22990) @@ -75,7 +75,14 @@ /* Generate lpc coefficients from autocorr values */ /* set our noise floor to about -100dB */ +#if defined(__GNUC__) && !defined(__clang__) && !defined(_MSC_VER) /* OpenMPT */ +#pragma GCC diagnostic push /* OpenMPT */ +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" /* OpenMPT */ +#endif /* OpenMPT */ error=aut[0] * (1. + 1e-10); +#if defined(__GNUC__) && !defined(__clang__) && !defined(_MSC_VER) /* OpenMPT */ +#pragma GCC diagnostic pop /* OpenMPT */ +#endif /* OpenMPT */ epsilon=1e-9*aut[0]+1e-10; for(i=0;i<m;i++){ Modified: branches/OpenMPT-1.29/include/vorbis/lib/psy.c ============================================================================== --- branches/OpenMPT-1.29/include/vorbis/lib/psy.c Fri Mar 7 21:08:13 2025 (r22989) +++ branches/OpenMPT-1.29/include/vorbis/lib/psy.c Fri Mar 7 21:08:57 2025 (r22990) @@ -711,8 +711,15 @@ for(i=0;i<n;i++)work[i]=logmdct[i]-logmask[i]; +#if defined(__GNUC__) && !defined(__clang__) && !defined(_MSC_VER) /* OpenMPT */ +#pragma GCC diagnostic push /* OpenMPT */ +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" /* OpenMPT */ +#endif /* OpenMPT */ bark_noise_hybridmp(n,p->bark,work,logmask,0., p->vi->noisewindowfixed); +#if defined(__GNUC__) && !defined(__clang__) && !defined(_MSC_VER) /* OpenMPT */ +#pragma GCC diagnostic pop /* OpenMPT */ +#endif /* OpenMPT */ for(i=0;i<n;i++)work[i]=logmdct[i]-work[i]; |