Author: manx
Date: Sun Apr 28 20:32:28 2024
New Revision: 20682
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20682
Log:
[Var] vorbis: Silence GCC false-positive warning.
Modified:
trunk/OpenMPT/include/vorbis/OpenMPT.txt
trunk/OpenMPT/include/vorbis/lib/lpc.c
Modified: trunk/OpenMPT/include/vorbis/OpenMPT.txt
==============================================================================
--- trunk/OpenMPT/include/vorbis/OpenMPT.txt Sun Apr 28 20:04:03 2024 (r20681)
+++ trunk/OpenMPT/include/vorbis/OpenMPT.txt Sun Apr 28 20:32:28 2024 (r20682)
@@ -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.
+- A GCC warning in lib/lpc.c has 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: trunk/OpenMPT/include/vorbis/lib/lpc.c
==============================================================================
--- trunk/OpenMPT/include/vorbis/lib/lpc.c Sun Apr 28 20:04:03 2024 (r20681)
+++ trunk/OpenMPT/include/vorbis/lib/lpc.c Sun Apr 28 20:32:28 2024 (r20682)
@@ -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++){
|