File audacity-no_return_in_nonvoid.patch of Package audacity

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' */
openSUSE Build Service is sponsored by