mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
animation: Explicitly ignore Wformat-truncation warning
This commit is contained in:
@@ -408,7 +408,10 @@ int main(int argc, char *argv[]){
|
||||
continue;
|
||||
}
|
||||
ckb_key* key = ctx.keys + i;
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-truncation"
|
||||
snprintf(key->name, CKB_KEYNAME_MAX, "%s", param);
|
||||
#pragma GCC diagnostic pop
|
||||
key->x = x;
|
||||
key->y = y;
|
||||
if(x > max_x)
|
||||
|
||||
Reference in New Issue
Block a user