aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cerrors.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-10-18 18:56:23 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2016-10-18 18:56:23 +0200
commitf6ba0da8e008b5bf5fa710eb087e0002e795e29f (patch)
tree69100242e3f0c455c680a01db6dbea55b07e6320 /cparser/Cerrors.ml
parent927d2a17d656715ea260a57fa914ff65d1a427fe (diff)
downloadcompcert-f6ba0da8e008b5bf5fa710eb087e0002e795e29f.tar.gz
compcert-f6ba0da8e008b5bf5fa710eb087e0002e795e29f.zip
Remove unnecessary usage of isatty.
Diffstat (limited to 'cparser/Cerrors.ml')
-rw-r--r--cparser/Cerrors.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Cerrors.ml b/cparser/Cerrors.ml
index 804d3127..a38cceee 100644
--- a/cparser/Cerrors.ml
+++ b/cparser/Cerrors.ml
@@ -200,7 +200,7 @@ let classify_warning w =
SuppressedMsg,None
let cprintf fmt c =
- if Unix.isatty Unix.stderr && !color_diagnostics then
+ if !color_diagnostics then
fprintf fmt c
else
ifprintf fmt c