1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: fix most C warnings (#6758)

This commit is contained in:
spaceface777
2020-11-06 15:26:59 +01:00
committed by GitHub
parent 98e8894d90
commit a9e9554b11
16 changed files with 89 additions and 90 deletions

View File

@@ -66,7 +66,7 @@ pub fn parse_iso8601(s string) ?Time {
offset_hour := 0
offset_min := 0
count := unsafe {C.sscanf(charptr(s.str), '%4d-%2d-%2d%c%2d:%2d:%2d.%6d%c%2d:%2d',
&year, &month, &day, &time_char, &hour, &minute, &second, &mic_second, &plus_min, &offset_hour,
&year, &month, &day, charptr(&time_char), &hour, &minute, &second, &mic_second, charptr(&plus_min), &offset_hour,
&offset_min)}
if count != 11 {
return error('Invalid 8601 format')