SHA256
1
0
forked from pool/audacity
audacity/audacity-no_return_in_nonvoid.patch
Takashi Iwai 8233bd17ba Accepting request 1189890 from home:Sauerland
See fix for #6955
https://github.com/audacity/audacity/issues/6973

- Update to 3.6.2
  * #6955 Fix out of bound access in waveform cache
  * #6857 fix: pitch-shift value not showing on Linux
  * #6883 Fix for labeled audio operations don't work in certain cases
  * Fix for TCP UI Breaks when dragging waveform splitter
  * Undo stack is cleared before project is compacted
  * Call SetBypass at the right time
  * Clear clipboard also before cutting
  * Prepare a set of tracks to apply labeled audio operations depending
  * Extend Join Region by one sample, to ensure that Split-Join operation
  * Envelope display fix: pass absolute time value when querying envelope

OBS-URL: https://build.opensuse.org/request/show/1189890
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=226
2024-07-31 15:48:43 +00:00

43 lines
1.6 KiB
Diff

diff --git a/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
index 8c1c7b5a8..e05c28dd9 100644
--- a/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
+++ b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
@@ -600,6 +600,7 @@ double pv_get_effective_pos(Phase_vocoder x)
return -(pv->ratio * pv->fftsize / 2.0);
} // I can't think of any other case.
assert(FALSE);
+ return(0);
}
diff --git a/lib-src/libnyquist/nyquist/xlisp/xlbfun.c b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
index 37ab60479..f434a674d 100644
--- a/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
+++ b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
@@ -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' */
diff --git a/lib-src/portsmf/allegro.cpp b/lib-src/portsmf/allegro.cpp
index a87117e38..d4717855a 100644
--- a/lib-src/portsmf/allegro.cpp
+++ b/lib-src/portsmf/allegro.cpp
@@ -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)