mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 20:12:07 +00:00
Enable a few warning flags
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -469,8 +469,10 @@ struct ColorWithLuminance {
|
||||
|
||||
static int compare_luminance(const void *a, const void *b)
|
||||
{
|
||||
struct ColorWithLuminance *x = (struct ColorWithLuminance *)a;
|
||||
struct ColorWithLuminance *y = (struct ColorWithLuminance *)b;
|
||||
const struct ColorWithLuminance *x, *y;
|
||||
|
||||
x = (const struct ColorWithLuminance *)a;
|
||||
y = (const struct ColorWithLuminance *)b;
|
||||
|
||||
return y->luminance - x->luminance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user