Mercurial > hg > octave-lojdl
changeset 13903:7b5da9754554
__voronoi__: avoid undeclared variable warning
* __voronoi__.cc (F__voronoi__): Move declaration of caller outside of
#ifdef HAVE_QHULL.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 21 Nov 2011 16:34:31 -0500 |
parents | 3af19cfc2e0f |
children | 1c06f3713e0a |
files | src/DLD-FUNCTIONS/__voronoi__.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__voronoi__.cc +++ b/src/DLD-FUNCTIONS/__voronoi__.cc @@ -65,6 +65,8 @@ { octave_value_list retval; + std::string caller = args(0).string_value (); + #ifdef HAVE_QHULL retval(0) = 0.0; @@ -76,8 +78,6 @@ return retval; } - std::string caller = args(0).string_value (); - Matrix points = args(1).matrix_value (); const octave_idx_type dim = points.columns (); const octave_idx_type num_points = points.rows ();