diff liboctave/util/unwind-prot.h @ 21141:34368609f62b

fix event-queue and unwind-protect exception warnings * event-queue.h (event_queue_safe::warn_unhandled_exception): New function. (event_queue_safe::gripe_exception): Delete decl. * event-queue.cc: New file. (event_queue_safe::warn_unhandled_exception): New function. * libinterp/corefcn/module.mk (COREFCN_SRC): Add it to the list * unwind-prot.cc, unwind-prot.h (unwind_protect_safe::warn_unhandled_exception): Rename from unwind_protect_safe::warn_unhandled_exception. No longer static.
author John W. Eaton <jwe@octave.org>
date Mon, 25 Jan 2016 19:39:58 -0500
parents 2e5c1f766ac9
children 1473547f50f5
line wrap: on
line diff
--- a/liboctave/util/unwind-prot.h	Mon Jan 25 19:16:31 2016 -0500
+++ b/liboctave/util/unwind-prot.h	Mon Jan 25 19:39:58 2016 -0500
@@ -117,7 +117,7 @@
 {
 private:
 
-  static void err_unhandled_exception (void);
+  void warn_unhandled_exception (void) const;
 
 public:
 
@@ -133,7 +133,7 @@
           }
         catch (...) // Yes, the black hole.  Remember we're in a destructor.
           {
-            err_unhandled_exception ();
+            warn_unhandled_exception ();
           }
       }
   }