Exclude unused functions for NaCl code path.
An upcoming NaCl roll is going to update arm-nacl-gcc from 4.8.3 to version 4.9.2.
When -Wunused-function is specified, gcc 4.8.3 only warns unused static functions.
On the other hand, gcc 4.9.2 warns unused functions in anonymous namespace in addition to the unused static functions.
This change would cause compile errors because there are a few unused functions in anonymous namespace.
This CL fixes the compile errors of ARM build that the upcoming NaCl roll would cause.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3887
TEST=Locally update NaCl revision and ARM build succeeds.
Review URL: https://codereview.chromium.org/711343002
Cr-Commit-Position: refs/heads/master@{#303847}
CrOS-Libchrome-Original-Commit: 9cfbcfb3e00697d3663a5dbf4fd8c81ae6970d97
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index 01402d0..2f4a03c 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -106,9 +106,11 @@
typedef MessagePumpLibevent MessagePumpForIO;
#endif
+#if !defined(OS_NACL_SFI)
MessagePumpForIO* ToPumpIO(MessagePump* pump) {
return static_cast<MessagePumpForIO*>(pump);
}
+#endif // !defined(OS_NACL_SFI)
} // namespace