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@20682 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Apr 28, 2024
1 parent 6c12188 commit d7cd769
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/vorbis/OpenMPT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +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.
- 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/lpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ float vorbis_lpc_from_data(float *data,float *lpci,int n,int m){
/* 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++){
Expand Down

0 comments on commit d7cd769

Please sign in to comment.