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:
@ -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) }
|
||||
|
Reference in New Issue
Block a user