gg: enable clean compilation without notices for ./v -check-unused-fn-args examples/tetris/

This commit is contained in:
Delyan Angelov 2025-01-09 08:33:11 +02:00
parent 85f42f3221
commit 3acbd580d4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -23,7 +23,7 @@ pub mut:
const buff_size = int($d('gg_text_buff_size', 2048))
fn clear_atlas_callback(uptr voidptr, error int, val int) {
fn clear_atlas_callback(uptr voidptr, error int, _val int) {
if error == 1 { // atlas overflow error code
fons := unsafe { &fontstash.Context(uptr) }
fons.reset_atlas(buff_size, buff_size)