mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
BuildSystem: Fix a few issues hightlighted by gcc 6.x
gcc 6.1.1 caught a few more issues. Made sure the unit tests still pass for the func_env and stdtime issues. ASTERISK-26157 #close Change-Id: I6664d8f34a45bc1481d2a854481c7878b0c1cf8e
This commit is contained in:
@@ -1849,13 +1849,14 @@ void ast_get_dst_info(const time_t * const timep, int *dst_enabled, time_t *dst_
|
||||
*dst_enabled = 0;
|
||||
/* Find where I can get gmtoff */
|
||||
i = 0;
|
||||
while (sp->ttis[i].tt_isdst)
|
||||
while (sp->ttis[i].tt_isdst) {
|
||||
if (++i >= sp->typecnt) {
|
||||
i = 0;
|
||||
break;
|
||||
i = 0;
|
||||
break;
|
||||
}
|
||||
*gmt_off = sp->ttis[i].tt_gmtoff;
|
||||
return;
|
||||
}
|
||||
*gmt_off = sp->ttis[i].tt_gmtoff;
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 1; i < sp->timecnt; ++i) {
|
||||
|
Reference in New Issue
Block a user