Fix -Wunreachable-code warning in nacl pthread code

I'm trying to make is_nacl_saigo builds use the "normal" build flags
instead of the "nacl" build flags. If I do that, we get two
-Wunreachable-code warnings.

This fixes those warnings. Since the compiler thinks that
SYSCALL(exit) is noreturn, this should have no behavior change.

Bug: chromium:346399
Change-Id: I5314b2f0d5f42ff3262d35a33850cd2a88b803ae
Reviewed-by: Roland McGrath <>
Commit-Queue: Nico Weber <>
2 files changed
tree: f83590ab9fe8fbcb22416fe3b7d8f59e2fa91b06
  1. .gitignore
  2. .gn
  3. .vpython
  7. DEPS
  10. NOTICE
  11. OWNERS
  14. SConstruct
  15. build/
  16. buildbot/
  17. codereview.settings
  18. config.gni
  19. docs/
  20. documentation/
  21. infra/
  22. pnacl/
  23. pynacl/
  25. scons
  26. scons.bat
  28. site_scons/
  29. src/
  30. tests/
  31. toolchain_build/
  32. toolchain_revisions/
  33. tools/
  34. whitespace.txt

Native Client

Welcome to Native Client. For the latest information about Native Client, see the Native Client project page.


Most of the Native Client project documentation is available online:

Directory structure

The following list describes major files and directories that you‘ll see in your working copy of the repository, including some directories that don’t exist until you've built Native Client. Paths are relative to the native_client directory.

  • COPYING NOTICE RELEASE_NOTES documentation/: Documentation, release, and license information.

  • SConstruct scons.bat scons scons-out/ site_scons/: Build-related files. The scons.bat and scons files, with data from SConstruct, let you build Native Client and its tests. The scons-out and site-scons directories don‘t exist in the git repository; they’re created when Native Client is built. The scons-out/*/staging directories contain files, such as the Native Client plug-in and compiled examples, that let you use and test Native Client.

  • src/: Core source code for Native Client.

  • src/include/: Header files that are missing from some platforms and are used by more than one major part of Native Client

  • src/shared/: Source code that's used by both trusted code (such as the service runtime) and untrusted code (such as Native Client modules)

  • src/third_party: Other people's source code

  • src/trusted/: Source code that's used only by trusted code

  • src/untrusted/: Source code that's used only by untrusted code

  • tests/common/: Source code for examples and tests.

  • ../third_party/: Third-party source code and binaries that aren't part of the service runtime. When built, the Native Client toolchain is in src/third_party/nacl_sdk/.

  • tools/: Utilities such as the plug-in installer.