Mercurial > hg > octave-nkf
diff src/data.cc @ 10076:4b270d1540f7
avoid various GCC warnings
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 09 Jan 2010 02:24:49 -0500 |
parents | dcde57cb5778 |
children | 829e69ec3110 |
line wrap: on
line diff
--- a/src/data.cc +++ b/src/data.cc @@ -6091,7 +6091,10 @@ static sortmode get_sort_mode_option (const octave_value& arg, const char *argn) { - sortmode smode; + // FIXME -- we initialize to UNSORTED here to avoid a GCC warning + // about possibly using sortmode uninitialized. + // FIXME -- shouldn't these modes be scoped inside a class? + sortmode smode = UNSORTED; std::string mode = arg.string_value ();