From 740eb5323e449ae4b00a3f657bffaceadcbe2624 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sun, 6 Sep 2009 10:53:22 +0000 Subject: Tweak code into an equivalent form for which icc doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81110 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Process.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/System/Unix') diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc index c4ce35a208..774783f8ad 100644 --- a/lib/System/Unix/Process.inc +++ b/lib/System/Unix/Process.inc @@ -181,25 +181,28 @@ void Process::PreventCoreFiles() { bool Process::StandardInIsUserInput() { #if HAVE_ISATTY return isatty(0); -#endif +#else // If we don't have isatty, just return false. return false; +#endif } bool Process::StandardOutIsDisplayed() { #if HAVE_ISATTY return isatty(1); -#endif +#else // If we don't have isatty, just return false. return false; +#endif } bool Process::StandardErrIsDisplayed() { #if HAVE_ISATTY return isatty(2); -#endif +#else // If we don't have isatty, just return false. return false; +#endif } static unsigned getColumns(int FileID) { -- cgit v1.2.3-70-g09d2