Skip to content

Commit

Permalink
Silence compiler warning regarding uninitialised var 'month'
Browse files Browse the repository at this point in the history
quantum_dlt_pm.c: In function `init_dlt_inquiry':
quantum_dlt_pm.c:87: warning: `month' might be used uninitialized in this function

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information
markh794 committed Sep 13, 2012
1 parent d42e53d commit ad9fc22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/quantum_dlt_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static void update_vpd_dlt_c0(struct lu_phy_attr *lu)

vpd_p = lu->lu_vpd[PCODE_OFFSET(0xc0)];
data = vpd_p->data;
month = 0;

sscanf(__TIME__, "%d:%d:%d", &h, &m, &s);
if (sscanf(__DATE__, "Jan %d %d", &day, &year) == 2)
Expand Down

0 comments on commit ad9fc22

Please sign in to comment.