fix some gcc 4.9 valid warnings 45/17045/2
authorClément DAVID <clement.david@scilab-enterprises.com>
Wed, 28 Jan 2015 16:23:26 +0000 (17:23 +0100)
committerPaul BIGNIER <paul.bignier@scilab-enterprises.com>
Tue, 18 Aug 2015 08:46:12 +0000 (10:46 +0200)
commita3eecc1827e8a19bce70000ecfbac5eb1243a014
tree61275db19740ce7ad52ecbf7e3266de7e21c7392
parentf557013740755aa50a07e1c3775be86599e9e146
fix some gcc 4.9 valid warnings

Scilab types used an int size whereas some natives functions return a
size_t. static_cast<int> is needed.

`for(iterator i = begin(), end = cases->end(); i != end; ++i)` will
disable optimizations as the end variable is not `const` thus might be
modified in the loop.

Change-Id: I828c95342c4e804e54dc7c0424a084d9708141cd
13 files changed:
scilab/modules/ast/includes/ast/runvisitor.hxx
scilab/modules/ast/includes/exps/exp.hxx
scilab/modules/ast/includes/types/sparse.hxx
scilab/modules/boolean/sci_gateway/cpp/sci_bool2s.cpp
scilab/modules/core/src/c/GetXmlFileEncoding.c
scilab/modules/elementary_functions/includes/elem_func_gw.hxx
scilab/modules/elementary_functions/sci_gateway/cpp/elem_func_gw.cpp
scilab/modules/elementary_functions/sci_gateway/cpp/sci_isequal.cpp
scilab/modules/elementary_functions/sci_gateway/cpp/sci_matrix.cpp
scilab/modules/elementary_functions/src/cpp/max.cpp
scilab/modules/elementary_functions/src/cpp/min.cpp
scilab/modules/fileio/src/cpp/mgetl.cpp
scilab/modules/output_stream/src/cpp/scilab_sprintf.cpp