Value stored to 'strutX2' is never read

Bug #1409976 reported by Stephen M. Webb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
Triaged
Undecided
Unassigned

Bug Description

Bug reported by the clang static analyzer.

Bug Summary

File: src/window.cpp
Location: line 1103, column 6
Description: Value stored to 'strutX2' is never read

1102 strutX1 = newStrut.right.x;
1103 strutX2 = strutX1 + newStrut.right.width;
Value stored to 'strutX2' is never read
1104 strutY1 = newStrut.right.y;
1105 strutY2 = strutY1 + newStrut.right.height;
1106
1107 if (strutX1 > x1 && strutX1 <= x2 &&
1108 strutY1 < y2 && strutY2 > y1)
1109 {
1110 newStrut.right.x = strutX1;
1111 newStrut.right.width = x2 - strutX1;
1112 }

This looks like a possible cut-n-paste error that could result in geometry getting messed up.

Will Cooke (willcooke)
tags: added: rls-w-incoming
Changed in compiz:
status: New → Triaged
tags: added: rls-x-incoming
removed: rls-w-incoming
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.