aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/compile.cxx4
-rw-r--r--build2/cc/gcc.cxx2
-rw-r--r--build2/cc/link.cxx6
3 files changed, 6 insertions, 6 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 6493c61..67d254b 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -1461,7 +1461,7 @@ namespace build2
// it is unwise to try to do any kind of cleanup (like unwinding
// the stack and running destructors).
//
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();
@@ -1706,7 +1706,7 @@ namespace build2
// it is unwise to try to do any kind of cleanup (like unwinding
// the stack and running destructors).
//
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();
diff --git a/build2/cc/gcc.cxx b/build2/cc/gcc.cxx
index 6ad1ad1..c16191a 100644
--- a/build2/cc/gcc.cxx
+++ b/build2/cc/gcc.cxx
@@ -92,7 +92,7 @@ namespace build2
{
error << "unable to execute " << args[0] << ": " << e;
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx
index 69e8561..bd2face 100644
--- a/build2/cc/link.cxx
+++ b/build2/cc/link.cxx
@@ -1074,7 +1074,7 @@ namespace build2
{
error << "unable to execute " << args[0] << ": " << e;
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();
@@ -1597,7 +1597,7 @@ namespace build2
// it is unwise to try to do any kind of cleanup (like unwinding
// the stack and running destructors).
//
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();
@@ -1631,7 +1631,7 @@ namespace build2
{
error << "unable to execute " << args[0] << ": " << e;
- if (e.child ())
+ if (e.child)
exit (1);
throw failed ();