rtc-lib: drop unused rtc_ydays
PATCH 1/1 rtc-lib: drop unused rtc_ydays
The patch fixes this compiler's warning:
drivers/rtc/rtc-lib.c:23:29: warning: ‘rtc_ydays’ defined but not used [-Wunused-const-variable=]
static const unsigned short rtc_ydays[2][13] = {
^~~~~~~~~Signed-off-by Antony Pavlov <[email protected]>
--- drivers/rtc/rtc-lib.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/rtc/rtc-lib.c +0 -7
@@ -20,13 +20,6 @@ static const unsigned char rtc_days_in_month[] = {31 ,28 ,31 ,30 ,31 ,30 ,31 ,31 ,30 ,31 ,30 ,31 }; -static const unsigned short rtc_ydays[2 ][13 ] = { -/* Normal years */ - {0 ,31 ,59 ,90 ,120 ,151 ,181 ,212 ,243 ,273 ,304 ,334 ,365 }, -/* Leap years */ - {0 ,31 ,60 ,91 ,121 ,152 ,182 ,213 ,244 ,274 ,305 ,335 ,366 } -}; -#define LEAPS_THRU_END_OF (y) ((y)/4 - (y)/100 + (y)/400)/*
Signature · 7 lines
2.11.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Antony Pavlov
The patch fixes this compiler's warning:
drivers/rtc/rtc-lib.c:23:29: warning: ‘rtc_ydays’ defined but not used [-Wunused-const-variable=] static const unsigned short rtc_ydays[2][13] = { ^~~~~~~~~Signed-off-by Antony Pavlov <[email protected]>
Applied, thanks
Sascha
Quoted 26 lines
--- drivers/rtc/rtc-lib.c | 7 ------- 1 file changed, 7 deletions(-)drivers/rtc/rtc-lib.c +0
-7@@ -20,13 +20,6 @@ static const unsigned char rtc_days_in_month[] = {31 ,28 ,31 ,30 ,31 ,30 ,31 ,31 ,30 ,31 ,30 ,31 }; -static const unsigned short rtc_ydays[2 ][13 ] = { -/* Normal years */ - {0 ,31 ,59 ,90 ,120 ,151 ,181 ,212 ,243 ,273 ,304 ,334 ,365 }, -/* Leap years */ - {0 ,31 ,60 ,91 ,121 ,152 ,182 ,213 ,244 ,274 ,305 ,335 ,366 } -}; -#define LEAPS_THRU_END_OF (y) ((y)/4 - (y)/100 + (y)/400)/* Signature · 1 line
2.11.0
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox