comparison libinterp/octave.cc @ 18125:25e87795f437 stable

don't error for non-integer ranges used as indices if --traditional * octave.cc (maximum_braindamage): Set warning state Octave:noninteger-range-as-index to "on".
author John W. Eaton <jwe@octave.org>
date Wed, 11 Dec 2013 22:21:06 -0500
parents 60dee9205bb5
children 4a4897cd6da1
comparison
equal deleted inserted replaced
18124:60dee9205bb5 18125:25e87795f437
496 disable_warning ("Octave:abbreviated-property-match"); 496 disable_warning ("Octave:abbreviated-property-match");
497 disable_warning ("Octave:fopen-file-in-path"); 497 disable_warning ("Octave:fopen-file-in-path");
498 disable_warning ("Octave:function-name-clash"); 498 disable_warning ("Octave:function-name-clash");
499 disable_warning ("Octave:load-file-in-path"); 499 disable_warning ("Octave:load-file-in-path");
500 disable_warning ("Octave:possible-matlab-short-circuit-operator"); 500 disable_warning ("Octave:possible-matlab-short-circuit-operator");
501
502 // Initialized to "error" by default.
503 set_warning_state ("Octave:noninteger-range-as-index", "on");
501 } 504 }
502 505
503 // EMBEDDED is declared int instead of bool because this function is 506 // EMBEDDED is declared int instead of bool because this function is
504 // declared extern "C". 507 // declared extern "C".
505 508