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

parser: check fn args in declarations too with -Wimpure-v

`v -Wimpure-v examples/2048/` now passes cleanly.
This commit is contained in:
Delyan Angelov
2021-11-03 16:20:19 +02:00
parent 4bafc5042b
commit c4e282a0c8
2 changed files with 13 additions and 1 deletions

View File

@ -122,7 +122,7 @@ pub fn (mut ctx Context) refresh_ui() {
ctx.ticks = 0
}
fn gg_event_fn(ce &C.sapp_event, user_data voidptr) {
fn gg_event_fn(ce voidptr, user_data voidptr) {
// e := unsafe { &sapp.Event(ce) }
mut e := unsafe { &Event(ce) }
mut g := unsafe { &Context(user_data) }