From ff5189a6a3a8c6bc76cf871b62f723314466f597 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Thu, 20 Apr 2006 11:02:17 +0000
Subject: INTEGRATION: CWS dmake43p01 (1.1.1.1.132); FILE MERGED 2006/03/13
23:21:28 vq 1.1.1.1.132.1: #i61390# Make dmake (gcc) build -Wall warning
free.
---
dmake/state.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'dmake/state.c')
diff --git a/dmake/state.c b/dmake/state.c
index 7b5a2fe79ab8..509377539aee 100644
--- a/dmake/state.c
+++ b/dmake/state.c
@@ -1,4 +1,4 @@
-/* RCS $Id: state.c,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $
+/* RCS $Id: state.c,v 1.2 2006-04-20 12:02:17 hr Exp $
--
-- SYNOPSIS
-- .KEEP_STATE state file management
@@ -122,8 +122,9 @@ Write_state()
if( Search_table(Defs, sp->st_name, &hv, &hk) ) {
fprintf( fp, "%s\n", sp->st_name );
fprintf( fp, "%d\n", sp->st_count );
- fprintf( fp, "%lu\n", sp->st_dkey );
- fprintf( fp, "%lu\n", sp->st_key );
+ /* long unsigned can be != uint32, silence the warning. */
+ fprintf( fp, "%lu\n", (unsigned long)sp->st_dkey );
+ fprintf( fp, "%lu\n", (unsigned long)sp->st_key );
}
}
--
cgit