diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 22:34:14 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-25 22:34:14 +0000 |
commit | 9afc14e2f54eaa5f75827542e73b430418f0c412 (patch) | |
tree | 76ef99cbd440b5bcf7711e5360c232053c6cd618 /ppapi | |
parent | d0e6d8e4a72f1ae7b518c921b5b359fdbb2874d2 (diff) | |
download | chromium_src-9afc14e2f54eaa5f75827542e73b430418f0c412.zip chromium_src-9afc14e2f54eaa5f75827542e73b430418f0c412.tar.gz chromium_src-9afc14e2f54eaa5f75827542e73b430418f0c412.tar.bz2 |
Clean up a few more unused globals.
Found by clang's new -Wunused-const-variable.
BUG=290204
R=akalin@chromium.org, avi@chromium.org, isherman@chromium.org, jamesr@chromium.org, joi@chromium.org, sergeyu@chromium.org, sky@chromium.org, thestig@chromium.org, xhwang@chromium.org
Review URL: https://codereview.chromium.org/24649002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc b/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc index 3f5ab0d..99e0339 100644 --- a/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc +++ b/ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc @@ -5,13 +5,14 @@ #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" #include "ppapi/native_client/src/trusted/plugin/nexe_arch.h" -namespace { // The list of supported ISA strings for x86. See issue: // http://code.google.com/p/nativeclient/issues/detail?id=1040 for more // information. Note that these string are to be case-insensitive compared. -const char* const kNexeArchX86_32 = "x86-32"; -const char* const kNexeArchX86_64 = "x86-64"; -} // namespace +const char kNexeArchX86_64[] = "x86-64"; +#if !((NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 64) && \ + (defined(NACL_LINUX) || defined(NACL_OSX))) +const char kNexeArchX86_32[] = "x86-32"; +#endif namespace plugin { const char* GetSandboxISA() { |