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

Unified Diff: core/cross/buffer.cc

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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
Index: core/cross/buffer.cc
===================================================================
--- core/cross/buffer.cc (revision 21208)
+++ core/cross/buffer.cc (working copy)
@@ -100,11 +100,11 @@
Buffer::Buffer(ServiceLocator* service_locator)
: NamedObject(service_locator),
features_(service_locator->GetService<Features>()),
- access_mode_(NONE),
field_change_count_(0),
total_components_(0),
stride_(0),
num_elements_(0),
+ access_mode_(NONE),
lock_count_(0) {
}
@@ -474,7 +474,7 @@
// Lock before reading in all the fields to avoid locking/unlocking
// for each field which would be slower
o3d::BufferLockHelper helper(this);
- void *buffer_data = helper.GetData(o3d::Buffer::WRITE_ONLY);
+ helper.GetData(o3d::Buffer::WRITE_ONLY);
// Read each field
for (int32 ff = 0; ff < num_fields; ++ff) {

Powered by Google App Engine
This is Rietveld 408576698