aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-04-01 17:38:11 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-02 23:49:11 +0200
commit6e053a7a5c71cb01f238c51ca98f3377c184cfb9 (patch)
tree38d2670114c8a304188c2cc860948664af7c0b67 /src/qml/jsruntime
parentc1d2bcff3dededa5b560713f4fd4874a023c43a2 (diff)
Work around warning by GCC 4.8 with -O3 about array out of bounds
qqmldelegatemodel.cpp:1140:53: error: array subscript is above array bounds [-Werror=array-bounds] attached->m_currentIndex[i] += deltas[i]; ^ qqmldelegatemodel.cpp:2009:29: error: array subscript is above array bounds [-Werror=array-bounds] m_currentIndex[i] = m_previousIndex[i] = incubationTask->index[i]; ^ I can't tell how the count can be higher than MaximumGroupCount. Either GCC is seeing something I'm not while inlining multiple functions, or it's just getting lost. If it's the former case, this is change could be a fix, but it's probably the wrong type of fix. If it's the latter, we're just throwing the inliner a curve ball and it just stops complaining. Change-Id: I7907074005f5327a8592f47d72a4e79f9c6cd5ff Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime')
0 files changed, 0 insertions, 0 deletions