Merge lp:~smspillaz/compiz-core/fix-timer-warnings-893998 into lp:compiz-core/0.9.5

Proposed by Sam Spilsbury
Status: Merged
Merged at revision: 2909
Proposed branch: lp:~smspillaz/compiz-core/fix-timer-warnings-893998
Merge into: lp:compiz-core/0.9.5
Prerequisite: lp:~smspillaz/compiz-core/fix-893467
Diff against target: 17 lines (+3/-3)
1 file modified
src/timer/src/timer.cpp (+3/-3)
To merge this branch: bzr merge lp:~smspillaz/compiz-core/fix-timer-warnings-893998
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
Tim Penhey (community) Approve
Review via email: mp+84055@code.launchpad.net

Description of the change

Fix warnings due to signed/unsigned int comparison in CompTimer

Next pipe: lp:~smspillaz/compiz-core/fix_894633_geometry_saver_class

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

As per the previous version of this proposal... Looks good, but:

1. Line 17 looks like it will conflict with my existing merge proposal:
https://code.launchpad.net/~vanvugt/compiz-core/bettertimers/+merge/82812
It's only a blank line so should not be hard to resolve.

2. Why prerequisite fix-893467 when it does not seem to be required? This fix alone appears to resolve bug 893998.

review: Needs Information
2899. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

It's a pipeline

Revision history for this message
Tim Penhey (thumper) :
review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

A pipeline implies serial activity, one fix after the other (?). But proposals would get reviewed faster and with less confusion if they didn't have dependencies so could effectively be reviewed in parallel and independently.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Approved. Of course, I don't want to be the one slowing us down either :)

review: Approve
2900. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2901. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2902. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2903. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2904. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2905. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2906. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2907. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2908. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2909. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2910. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2911. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2912. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

2913. By Sam Spilsbury

Merged fix-893467 into fix-timer-warnings-893998.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please remove all changes unrelated to the bug in question (all changes except src/timer/src/timer.cpp).

That will also remove the Prerequisite above. Then please resubmit the proposal with just timer.cpp.

review: Needs Fixing
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Never mind. I have picked out the relevant part of the branch by hand.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/timer/src/timer.cpp'
2--- src/timer/src/timer.cpp 2011-12-23 05:12:39 +0000
3+++ src/timer/src/timer.cpp 2012-01-11 08:47:25 +0000
4@@ -105,10 +105,10 @@
5 while (it != TimeoutHandler::Default ()->timers ().end ())
6 {
7 t = (*it);
8- if (t->minLeft () >= timeout)
9+ if (t->minLeft () >= (unsigned int) timeout)
10 break;
11- if (t->maxLeft () < timeout)
12- timeout = t->maxLeft ();
13+ if (t->maxLeft () < (unsigned int) timeout)
14+ timeout = (int) t->maxLeft ();
15 it++;
16 }
17 }

Subscribers

People subscribed via source and target branches