diff options
author | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 06:04:39 +0000 |
---|---|---|
committer | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 06:04:39 +0000 |
commit | 19e273c317cee4a2952da8687b569ad7083d0c98 (patch) | |
tree | 8b1125250f8f3a8846d73ae3c7afc34721aab39b /base/message_loop | |
parent | 1ee7f899b6db8fbfbc19efd2f236d077752528e1 (diff) | |
download | chromium_src-19e273c317cee4a2952da8687b569ad7083d0c98.zip chromium_src-19e273c317cee4a2952da8687b569ad7083d0c98.tar.gz chromium_src-19e273c317cee4a2952da8687b569ad7083d0c98.tar.bz2 |
Fix "defined but not used" warning in base/message_loop/message_loop.cc
PNaCl is being upgraded to Clang 3.4, which now warns about unused
declarations inside anonymous namespaces.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3757
TEST=compile using new PNaCl toolchain
R=darin@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/185583002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop')
-rw-r--r-- | base/message_loop/message_loop.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc index 8f6c9d8..e14ce85 100644 --- a/base/message_loop/message_loop.cc +++ b/base/message_loop/message_loop.cc @@ -50,6 +50,7 @@ LazyInstance<base::ThreadLocalPointer<MessageLoop> >::Leaky lazy_tls_ptr = // Logical events for Histogram profiling. Run with -message-loop-histogrammer // to get an accounting of messages and actions taken on each thread. const int kTaskRunEvent = 0x1; +#if !defined(OS_NACL) const int kTimerEvent = 0x2; // Provide range of message IDs for use in histogramming and debug display. @@ -83,6 +84,7 @@ const LinearHistogram::DescriptionPair event_descriptions_[] = { {-1, NULL} // The list must be null terminated, per API to histogram. }; +#endif // !defined(OS_NACL) bool enable_histogrammer_ = false; |