[RFC PATCH 2/2] Add Octave:unexpected-densifying warning.
Jason Riedy
ejr at cs.berkeley.edu
Thu Dec 6 18:50:22 CST 2007
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
More information about the Octave-maintainers
mailing list