Coverity DEADCODE - CID 12430 - plugins/put/src/put.cpp, dead_default_in_switch in PutScreen::getDistance function

Bug #1101616 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
New
Low
Unassigned
0.9.9
Won't Fix
Medium
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 12430
Checker: DEADCODE
Category: dead_default_in_switch
CWE definition: http://cwe.mitre.org/data/definitions/561.html
File: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/put/src/put.cpp
Function: PutScreen::getDistance(CompWindow *, PutType, std::vector<CompOption, std::allocator<CompOption>> &)
Code snippet:
402 workArea = s->getWorkareaForOutput (output);
403 ps->lastType = type;
404 }
405
CID 12430 - DEADCODE
Condition "type >= 20", taking true branch. Now the value of "type" is at least 20.
Condition "type <= 28", taking true branch. Now the value of "type" is between 20 and 28.
406 if (PUT_ONLY_EMPTY (type))
407 {
408 unsigned int mask;
409 XWindowChanges xwc;
410 bool left, right, up, down;
411

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : compiz-0.9.9: /tmp/buildd/compiz-0.9.9~daily13.01.14/plugins/put/src/put.cpp

Source file with Coverity annotations.

Changed in compiz:
importance: Undecided → Medium
MC Return (mc-return)
summary: - Coverity DEADCODE - CID 12430
+ Coverity DEADCODE - CID 12430 - plugins/put/src/put.cpp,
+ dead_default_in_switch in PutScreen::getDistance function
Changed in compiz:
milestone: none → 0.9.10.0
importance: Medium → Low
Changed in compiz:
milestone: 0.9.10.0 → 0.9.10.2
MC Return (mc-return)
Changed in compiz:
milestone: 0.9.10.2 → 0.9.11.0
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.