audacity/audacity-no_return_in_nonvoid.patch
Dave Plater 911d4c0f83 Accepting request 769492 from home:plater
- Download 2.3.3 tarball again to fix incorrect release info.
- Use autopatch and refresh patches.
- Fix boo#1162418, caused by wxWidgets.

OBS-URL: https://build.opensuse.org/request/show/769492
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=136
2020-02-03 09:50:34 +00:00

29 lines
1.3 KiB
Diff

Index: audacity-Audacity-2.3.3/src/widgets/NumericTextCtrl.cpp
===================================================================
--- audacity-Audacity-2.3.3.orig/src/widgets/NumericTextCtrl.cpp 2019-11-15 13:14:55.000000000 +0200
+++ audacity-Audacity-2.3.3/src/widgets/NumericTextCtrl.cpp 2020-02-02 15:41:21.663740215 +0200
@@ -637,6 +637,7 @@ static const BuiltinFormatString Bandwid
case NumericConverter::BANDWIDTH:
return WXSIZEOF(BandwidthConverterFormats_);
}
+ return WXSIZEOF(BandwidthConverterFormats_);
}
}
Index: audacity-Audacity-2.3.3/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
===================================================================
--- audacity-Audacity-2.3.3.orig/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2019-11-15 13:14:55.000000000 +0200
+++ audacity-Audacity-2.3.3/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2020-02-02 15:41:21.663740215 +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' */