File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 34
34
35
35
#if defined(HAVE_UNISTD_H)
36
36
# include < unistd.h>
37
- #else
38
- #ifndef STDIN_FILENO
39
- #define STDIN_FILENO 0
40
- #endif
41
- #ifndef STDOUT_FILENO
42
- #define STDOUT_FILENO 1
43
- #endif
44
- #ifndef STDERR_FILENO
45
- #define STDERR_FILENO 2
46
- #endif
47
37
#endif
48
38
49
39
#if defined(__CYGWIN__)
@@ -906,21 +896,22 @@ raw_fd_ostream &llvm::outs() {
906
896
std::error_code EC;
907
897
908
898
// On z/OS we need to enable auto conversion
909
- EC = enableAutoConversion (STDOUT_FILENO);
910
- assert (!EC);
899
+ static std::error_code EC1 = enableAutoConversion (STDOUT_FILENO);
900
+ assert (!EC1);
901
+ (void ) EC1;
911
902
912
903
static raw_fd_ostream S (" -" , EC, sys::fs::OF_None);
913
904
assert (!EC);
914
905
return S;
915
906
}
916
907
917
908
raw_fd_ostream &llvm::errs () {
918
- // Set standard error to be unbuffered.
919
-
920
909
// On z/OS we need to enable auto conversion
921
- std::error_code EC = enableAutoConversion (STDERR_FILENO);
910
+ static std::error_code EC = enableAutoConversion (STDERR_FILENO);
922
911
assert (!EC);
912
+ (void ) EC;
923
913
914
+ // Set standard error to be unbuffered.
924
915
static raw_fd_ostream S (STDERR_FILENO, false , true );
925
916
return S;
926
917
}
You can’t perform that action at this time.
0 commit comments