changeset 26287:e95e17d6b6dc stable

mean.m: Suppress divide-by-zero warning (bug #55264). * mean.m: Disable "Octave:divide-by-zero" warning temporarily for function. Add FIXME note to delete this completely when "divide-by-zero" is removed in Octave 6.0.
author Rik <rik@octave.org>
date Fri, 21 Dec 2018 14:17:34 -0800
parents 3b917b501087
children d41d137af059
files scripts/statistics/mean.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/mean.m	Fri Dec 21 11:19:09 2018 -0800
+++ b/scripts/statistics/mean.m	Fri Dec 21 14:17:34 2018 -0800
@@ -142,6 +142,10 @@
       print_usage ();
   endswitch
 
+  ## FIXME: Delete this when the "divide-by-zero" warning is
+  ##        removed in Octave 6.0.
+  warning ("off", "Octave:divide-by-zero", "local");
+
   ## The actual mean computation
   n = size (x, dim);
   switch (mean_type)