debuggers.hg

changeset 4601:cc683618c526

bitkeeper revision 1.1319 (4264295cjYBiljHc4G82B7WseRd9vA)

The problem is that GCC4 is seeing is that variable such as frame (in
grant_table.c) is passed into a function without initialization. Again for the variable sl1mfn (in shadow.c) does the same thing. So really the patches should be:

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
author iap10@freefall.cl.cam.ac.uk
date Mon Apr 18 21:40:44 2005 +0000 (2005-04-18)
parents 24775547c56a
children 7edc9d4fa41e
files xen/arch/x86/shadow.c xen/common/grant_table.c
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Mon Apr 18 21:35:56 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Mon Apr 18 21:40:44 2005 +0000
     1.3 @@ -1651,7 +1651,7 @@ static inline unsigned long
     1.4  shadow_make_snapshot(
     1.5      struct domain *d, unsigned long gpfn, unsigned long gmfn)
     1.6  {
     1.7 -    unsigned long smfn, sl1mfn;
     1.8 +    unsigned long smfn, sl1mfn = 0;
     1.9      void *original, *snapshot;
    1.10      u32 min_max = 0;
    1.11      int min, max, length;
     2.1 --- a/xen/common/grant_table.c	Mon Apr 18 21:35:56 2005 +0000
     2.2 +++ b/xen/common/grant_table.c	Mon Apr 18 21:40:44 2005 +0000
     2.3 @@ -311,7 +311,7 @@ static int
     2.4      struct exec_domain   *led;
     2.5      u16                   dev_hst_ro_flags;
     2.6      int                   handle;
     2.7 -    unsigned long         frame, host_virt_addr;
     2.8 +    unsigned long         frame = 0, host_virt_addr;
     2.9      int                   rc;
    2.10  
    2.11      /* Returns 0 if TLB flush / invalidate required by caller.