audacity/audacity-no_return_in_nonvoid.patch
Dave Plater fac9ee7869 Accepting request 914616 from home:plater
- Update to version 3.0.4
- Add git patches:
  0001-Adds-an-option-to-disable-Conan.patch,
  0001-Scope-libraries-required-by-the-optional-features.patch
  0001-Fixes-wxwidgets-fixup-script.patch
- Added patch adapted from git, Fixes-GCC11-compatibility.patch
- Removed obsolete patches, audacity-remove-wx-test.patch and
  b4b5cc8.patch
- Upstream changes:
  *This is a hotfix release that fixes a bug with envelope points,
   which could multiply uncontrollably and cause Audacity to crash.
  *In particular:
    #1476: Envelope points are multiplied when using 
    Filter Curve EQ or Graphic EQ
    #1477: Filter Curve EQ will crash if there is an envelope 
    point outside of the selection
  *This fix re-introduces an earlier, but way less destructive bug:
   bugzilla 208 / #1500: Some effects delete Envelope Control Points
   or do not move them when timeline changes
  *Other than that, this release is identical to Version 3.0.3.

OBS-URL: https://build.opensuse.org/request/show/914616
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=167
2021-08-27 13:14:25 +00:00

55 lines
2.2 KiB
Diff

Index: b/src/widgets/NumericTextCtrl.cpp
===================================================================
--- a/src/widgets/NumericTextCtrl.cpp 2021-08-26 08:15:19.157002365 +0200
+++ b/src/widgets/NumericTextCtrl.cpp 2021-08-26 08:15:38.545784197 +0200
@@ -677,6 +677,7 @@ static const BuiltinFormatString Bandwid
case NumericConverter::BANDWIDTH:
return WXSIZEOF(BandwidthConverterFormats_);
}
+ return WXSIZEOF(BandwidthConverterFormats_);
}
}
Index: b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
===================================================================
--- a/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2021-08-26 08:15:19.157002365 +0200
+++ b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2021-08-26 08:15:38.545784197 +0200
@@ -603,7 +603,10 @@ LVAL xcleanup(void)
{
xllastarg();
xlcleanup();
- /* compiler might (wrongly) complain there is no return value */
+ /* this point will never be reached because xlcleanup() does a
+ longjmp(). The return is added to avoid false positive
+ error messages from static analyzers and compilers */
+ return (NIL);
}
/* xtoplevel - special form 'top-level' */
Index: b/lib-src/portsmf/allegro.cpp
===================================================================
--- a/lib-src/portsmf/allegro.cpp 2021-08-26 08:15:19.157002365 +0200
+++ b/lib-src/portsmf/allegro.cpp 2021-08-26 08:15:38.545784197 +0200
@@ -2905,6 +2905,9 @@ Alg_event_ptr &Alg_seq::operator[](int i
tr++;
}
assert(false); // out of bounds
+ Alg_event_ptr ab_track;
+ return ab_track; // Fix false positive error: control reaches end of non-void function [-Werror=return-type]
+ // Ignores the assert A gcc bug?
}
#pragma warning(default: 4715)
Index: b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
===================================================================
--- a/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c 2021-08-26 08:15:19.157002365 +0200
+++ b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c 2021-08-26 08:15:38.545784197 +0200
@@ -600,6 +600,7 @@ double pv_get_effective_pos(Phase_vocode
return -(pv->ratio * pv->fftsize / 2.0);
} // I can't think of any other case.
assert(FALSE);
+ return(0);
}