mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
os,picohttpparser,sokol,strconv: prepare for making -W impure-v
the default (#19846)
This commit is contained in:
parent
a15c067189
commit
c494b63d75
7 changed files with 5 additions and 5 deletions
|
@ -49,11 +49,11 @@ const (
|
|||
'vlib/io/os_file_reader_test.v',
|
||||
'vlib/os/process_test.v',
|
||||
'vlib/os/file_test.v',
|
||||
'vlib/os/notify/notify_test.v',
|
||||
'vlib/os/notify/notify_test.c.v',
|
||||
'vlib/os/filepath_test.v',
|
||||
'vlib/os/environment_test.v',
|
||||
'vlib/os/glob_test.v',
|
||||
'vlib/os/os_test.v',
|
||||
'vlib/os/os_test.c.v',
|
||||
'vlib/rand/random_numbers_test.v',
|
||||
'vlib/rand/wyrand/wyrand_test.v',
|
||||
'vlib/runtime/runtime_test.v',
|
||||
|
@ -63,7 +63,7 @@ const (
|
|||
'vlib/sync/waitgroup_test.v',
|
||||
'vlib/sync/pool/pool_test.v',
|
||||
'vlib/strings/builder_test.v',
|
||||
'vlib/strconv/atof_test.v',
|
||||
'vlib/strconv/atof_test.c.v',
|
||||
'vlib/strconv/atoi_test.v',
|
||||
'vlib/strconv/f32_f64_to_string_test.v',
|
||||
'vlib/strconv/format_test.v',
|
||||
|
|
|
@ -12,7 +12,7 @@ pub mut:
|
|||
[inline]
|
||||
pub fn (mut r Response) write_string(s string) {
|
||||
unsafe {
|
||||
C.memcpy(r.buf, s.str, s.len)
|
||||
vmemcpy(r.buf, s.str, s.len)
|
||||
r.buf += s.len
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ pub fn (mut r Response) header(k string, v string) &Response {
|
|||
pub fn (mut r Response) header_date() &Response {
|
||||
r.write_string('Date: ')
|
||||
unsafe {
|
||||
C.memcpy(r.buf, r.date, 29)
|
||||
vmemcpy(r.buf, r.date, 29)
|
||||
r.buf += 29
|
||||
}
|
||||
r.write_string('\r\n')
|
Loading…
Add table
Add a link
Reference in a new issue