View Bug Details

IDProjectCategoryView StatusLast Update
0001784DCP-o-maticBugspublic2023-09-01 21:48
Reportercarl Assigned Tocarl  
PriorityimmediateSeverityminorReproducibilityhave not tried
Status closedResolutionwon't fix 
Target Version2.16.0 
Summary0001784: Fix -Wsign-compare bugs that mingw's compiler emits
Description

[]

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work requiredUndecided

Activities

carl

2020-07-24 22:19

administrator   ~0003870

signed-unsigned branch

carl

2020-07-25 22:09

administrator   ~0003871

This just seems to be more trouble than it's worth; doing a few fixes suggests that the majority of the warnings are due to signed values hitting up against std::vector::size() or indices for vectors. The best you can do seems to be a bunch of static_cast<size_t> with asserts to check that values are >0 first. Such asserts could be added (and -Wsign-compare is a useful way to find where they might be needed).

Things might be neater with an extended / new vector type which use signed indices and size().

Bug History

Date Modified Username Field Change
2020-07-20 19:14 carl New Bug
2020-07-20 19:14 carl Status new => acknowledged
2020-07-20 19:14 carl Estimated work required => Undecided
2020-07-24 22:19 carl Note Added: 0003870
2020-07-25 22:09 carl Assigned To => carl
2020-07-25 22:09 carl Status acknowledged => resolved
2020-07-25 22:09 carl Resolution open => won't fix
2020-07-25 22:09 carl Note Added: 0003871
2023-09-01 21:48 carl Status resolved => closed