Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: gpu/command_buffer/common/id_allocator.cc

Issue 2865003: Working towards -Wextra... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.h ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/id_allocator.cc
===================================================================
--- gpu/command_buffer/common/id_allocator.cc (revision 49807)
+++ gpu/command_buffer/common/id_allocator.cc (working copy)
@@ -27,7 +27,7 @@
ResourceId IdAllocator::AllocateIDAtOrAbove(ResourceId desired_id) {
DCHECK_LT(static_cast<ResourceId>(used_ids_.size()),
static_cast<ResourceId>(-1));
- for (; InUse(desired_id); ++desired_id);
+ for (; InUse(desired_id); ++desired_id) {}
MarkAsUsed(desired_id);
return desired_id;
}
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.h ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698