Closed skyline75489 closed 2 years ago
Duplicate of #17 and #20
Or should we do something about it? Linux often complains about unused variables though...
I mean if you want to go that far, GCC supports similar functionality with __attribute__((__unused__))
this is a rough example
#ifdef __GNUC__
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
#else
# define UNUSED(x) UNUSED_ ## x
#endif
Fixed in 6c9d2f9884c54fb418d73b4b9304160a42eaede2 and 4945950df1a9285181e6540d80e8f8a83f4e1917
This causes compilation error with:
https://github.com/TrungNguyen1909/qemu-t8030/blob/7f5549a9acf4ebe23456b588ed969fd287200ba5/hw/watchdog/apple_wdt.c#L145
GCC version