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

Unified Diff: src/cpu-profiler.h

Issue 1084010: Fix ARM build (GCC 3 'all member functions in class are private' warning.) (Closed)
Patch Set: Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu-profiler.h
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
index 7c838fd2513b42df3bd9e291dacac019ae063dc0..7a3711ddf54637b581a6641429cc6a1f7f3565ed 100644
--- a/src/cpu-profiler.h
+++ b/src/cpu-profiler.h
@@ -110,6 +110,10 @@ class TickSampleEventRecord {
TickSample sample;
unsigned order;
+#if defined(__GNUC__) && (__GNUC__ < 4)
+ // Added to avoid 'all member functions in class are private' error.
+ INLINE(unsigned get_order() const) { return order; }
+#endif
private:
// Disable instantiation.
TickSampleEventRecord();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698