diff options
author | mazda <mazda@chromium.org> | 2014-11-12 09:07:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-12 17:07:31 +0000 |
commit | 9cfbcfb3e00697d3663a5dbf4fd8c81ae6970d97 (patch) | |
tree | 438a43bceba044ea90d26c7aebbd2d163c1b2390 /ppapi/proxy | |
parent | f9f03ed2af1f56290a16288faddab24e99d4f521 (diff) | |
download | chromium_src-9cfbcfb3e00697d3663a5dbf4fd8c81ae6970d97.zip chromium_src-9cfbcfb3e00697d3663a5dbf4fd8c81ae6970d97.tar.gz chromium_src-9cfbcfb3e00697d3663a5dbf4fd8c81ae6970d97.tar.bz2 |
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}
Diffstat (limited to 'ppapi/proxy')
-rw-r--r-- | ppapi/proxy/ppb_graphics_3d_proxy.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc index e55e9ca..7cd2b88 100644 --- a/ppapi/proxy/ppb_graphics_3d_proxy.cc +++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc @@ -28,6 +28,7 @@ namespace { const int32 kCommandBufferSize = 1024 * 1024; const int32 kTransferBufferSize = 1024 * 1024; +#if !defined(OS_NACL) base::SharedMemoryHandle TransportSHMHandle( Dispatcher* dispatcher, const base::SharedMemoryHandle& handle) { @@ -35,6 +36,7 @@ base::SharedMemoryHandle TransportSHMHandle( // Don't close the handle, it doesn't belong to us. return dispatcher->ShareHandleWithRemote(source, false); } +#endif // !defined(OS_NACL) gpu::CommandBuffer::State GetErrorState() { gpu::CommandBuffer::State error_state; @@ -378,4 +380,3 @@ void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( } // namespace proxy } // namespace ppapi - |