Skip to content

Commit

Permalink
[Var] vorbis: Silence GCC false-positive warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20683 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Apr 28, 2024
1 parent d7cd769 commit 12e9ab8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/vorbis/OpenMPT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The following changes have been made:
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.
- 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.
7 changes: 7 additions & 0 deletions include/vorbis/lib/psy.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,15 @@ void _vp_noisemask(vorbis_look_psy *p,

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];

Expand Down

0 comments on commit 12e9ab8

Please sign in to comment.