summaryrefslogtreecommitdiff
path: root/dmake/dag.c
diff options
context:
space:
mode:
authorKen Foskey <waratah@openoffice.org>2002-10-11 12:42:49 +0000
committerKen Foskey <waratah@openoffice.org>2002-10-11 12:42:49 +0000
commitbc95f59574c8d2535fa028e8a6af09f826725801 (patch)
tree5d0d413043879f3fc13b8fe3ce0b3e9c2188de73 /dmake/dag.c
parent68496a2957e2f4b7bb2b8a943236ea4859905bf2 (diff)
dmake: Implement fix for Lost child problem. Correct some checks for functions (assumed present) and also fix up all gcc warnings using -Wall.
Diffstat (limited to 'dmake/dag.c')
-rw-r--r--dmake/dag.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dmake/dag.c b/dmake/dag.c
index 09efcb510c99..6fc0bcc6ce6d 100644
--- a/dmake/dag.c
+++ b/dmake/dag.c
@@ -1,4 +1,4 @@
-/* RCS $Id: dag.c,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $
+/* RCS $Id: dag.c,v 1.2 2002-10-11 13:42:42 waratah Exp $
--
-- SYNOPSIS
-- Routines to construct the internal dag.
@@ -321,11 +321,12 @@ int flags; /* initial ht_flags */
/* Check for macro variables and make the necessary adjustment in the
* corresponding global variables */
- if( hp->ht_flag & M_VAR_MASK )
+ if( hp->ht_flag & M_VAR_MASK ) {
if( !(flags & M_EXPANDED) )
Error( "Macro variable '%s' must be assigned with :=", name );
else
set_macro_value(hp);
+ }
DB_RETURN( hp );
}
@@ -496,11 +497,12 @@ int fail;
DB_ENTER( "Test_circle" );
DB_PRINT( "tc", ("checking [%s]", cp->CE_NAME) );
- if( cp->ce_flag & F_MARK )
+ if( cp->ce_flag & F_MARK ) {
if( fail )
Fatal("Detected circular dependency in graph at [%s]", cp->CE_NAME);
else
DB_RETURN( 1 );
+ }
cp->ce_flag |= F_MARK;
for( lp = cp->ce_prq; !res && lp != NIL(LINK); lp = lp->cl_next )