Skip to content

Commit c494b63

Browse files
authored
os,picohttpparser,sokol,strconv: prepare for making -W impure-v the default (#19846)
1 parent a15c067 commit c494b63

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

cmd/tools/vtest-self.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ const (
4949
'vlib/io/os_file_reader_test.v',
5050
'vlib/os/process_test.v',
5151
'vlib/os/file_test.v',
52-
'vlib/os/notify/notify_test.v',
52+
'vlib/os/notify/notify_test.c.v',
5353
'vlib/os/filepath_test.v',
5454
'vlib/os/environment_test.v',
5555
'vlib/os/glob_test.v',
56-
'vlib/os/os_test.v',
56+
'vlib/os/os_test.c.v',
5757
'vlib/rand/random_numbers_test.v',
5858
'vlib/rand/wyrand/wyrand_test.v',
5959
'vlib/runtime/runtime_test.v',
@@ -63,7 +63,7 @@ const (
6363
'vlib/sync/waitgroup_test.v',
6464
'vlib/sync/pool/pool_test.v',
6565
'vlib/strings/builder_test.v',
66-
'vlib/strconv/atof_test.v',
66+
'vlib/strconv/atof_test.c.v',
6767
'vlib/strconv/atoi_test.v',
6868
'vlib/strconv/f32_f64_to_string_test.v',
6969
'vlib/strconv/format_test.v',
File renamed without changes.
File renamed without changes.

vlib/picohttpparser/response.v renamed to vlib/picohttpparser/response.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub mut:
1212
[inline]
1313
pub fn (mut r Response) write_string(s string) {
1414
unsafe {
15-
C.memcpy(r.buf, s.str, s.len)
15+
vmemcpy(r.buf, s.str, s.len)
1616
r.buf += s.len
1717
}
1818
}
@@ -36,7 +36,7 @@ pub fn (mut r Response) header(k string, v string) &Response {
3636
pub fn (mut r Response) header_date() &Response {
3737
r.write_string('Date: ')
3838
unsafe {
39-
C.memcpy(r.buf, r.date, 29)
39+
vmemcpy(r.buf, r.date, 29)
4040
r.buf += 29
4141
}
4242
r.write_string('\r\n')
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)