octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 2/2] Add Octave:unexpected-densifying warning.


From: Jason Riedy
Subject: Re: [RFC PATCH 2/2] Add Octave:unexpected-densifying warning.
Date: Thu, 06 Dec 2007 16:50:22 -0800
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

And I write:
> --- a/src/DLD-FUNCTIONS/sparse.cc
> +++ b/src/DLD-FUNCTIONS/sparse.cc
> @@ -370,6 +370,7 @@ DEFUN_DLD (full, args, ,
>  @end deftypefn")
>  {
>    octave_value retval;
> +  octave_warning_suspend("Octave:unexpectedly-densifying");

AUGH.  That line should be

  const octave_warning_suspend densifies ("Octave:unexpectedly-densifying");

Without the actual object (densifies), it may or may not work,
depending on when the compiler calls the destructor.

Jason


reply via email to

[Prev in Thread] Current Thread [Next in Thread]