Re: [PATCH v3 10/16] ui/cocoa: Clean up global variable shadowing
On 2023/10/04 21:00, Philippe Mathieu-Daudé wrote: Fix: ui/cocoa.m:346:20: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] QemuCocoaView *cocoaView = userInfo; ^ ui/cocoa.m:342:16: note: previous declaration is here
[PATCH v3 10/16] ui/cocoa: Clean up global variable shadowing
Fix: ui/cocoa.m:346:20: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] QemuCocoaView *cocoaView = userInfo; ^ ui/cocoa.m:342:16: note: previous declaration is here QemuCocoaView *cocoaView; ^ Signed-off-by: Philippe