commit 8656a3068f4b2fab84c55de68dd1c724f28638f9
parent 17c4d7ac83b111e1d45add1fb8792714b6b448bf
Author: sin <sin@2f30.org>
Date: Mon, 18 Nov 2013 16:57:00 +0000
Fix warning with -Wextra
spectrum.c:56:2: warning: missing initializer for field scaled_min of struct color_range [-Wmissing-field-initializers]
same for scaled_max.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/spectrum.c b/spectrum.c
@@ -51,9 +51,9 @@ static struct color_range {
int scaled_min;
int scaled_max;
} color_ranges[] = {
- { 1, 0, 20, COLOR_RED, COLOR_BLACK },
- { 2, 20, 60, COLOR_YELLOW, COLOR_BLACK },
- { 3, 60, 100, COLOR_GREEN, COLOR_BLACK }
+ { 1, 0, 20, COLOR_RED, COLOR_BLACK, 0, 0 },
+ { 2, 20, 60, COLOR_YELLOW, COLOR_BLACK, 0, 0 },
+ { 3, 60, 100, COLOR_GREEN, COLOR_BLACK, 0, 0 }
};
static void