ListCfg.cpp:328: dodgy code

Bug #1312435 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

grub-customizer-4.0.6/src/Model/ListCfg.cpp:328:154: warning: operation on 'i' may be undefined [-Wsequence-point]

Source code is

                this->send_new_load_progress(0.1 + (progressbarScriptSpace * ++i + (progressbarScriptSpace/10*innerCount)), script->name, i, this->repository.size());

Order of evaluation of parameters of a function is undefined.
Suggest avoid writing code which depends on an order.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.