Skip to content
  • Thomas Monjalon's avatar
    microblaze: fix custom fprintf · aacf4563
    Thomas Monjalon authored
    
    
    Using GCC-4.2.4-1ubuntu4, there is a warning:
    	microblaze-dis.c:792: warning: unused variable 'fprintf'
    
    Indeed, fprintf() is shadowed by a custom redefinition but is not used because
    of FORTIFY_SOURCE option which replace calls to fprintf() by fprintf_chk().
    So, fprintf refers to the libc implementation instead of the qemu one.
    It's a bug.
    
    It is fixed by renaming the variable to something different of "fprintf".
    It prevents from hazardous shadowing.
    
    Signed-off-by: default avatarThomas Monjalon <thomas@monjalon.net>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    aacf4563