From 6bd856a84f6e20edfa59ec0fd4ba584e3204f7ca Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 10 May 2024 14:59:37 +0200 Subject: [PATCH] Fix warning with gcc 11.3.1 --- src/emu/model_evspec.c | 2 +- src/emu/model_evspec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/model_evspec.c b/src/emu/model_evspec.c index 6b67cb6..23fd12a 100644 --- a/src/emu/model_evspec.c +++ b/src/emu/model_evspec.c @@ -64,7 +64,7 @@ model_evspec_init(struct model_evspec *evspec, struct model_spec *spec) } struct ev_spec * -model_evspec_find(struct model_evspec *evspec, char mcv[4]) +model_evspec_find(struct model_evspec *evspec, char *mcv) { struct ev_spec *s = NULL; HASH_FIND_STR(evspec->spec, mcv, s); diff --git a/src/emu/model_evspec.h b/src/emu/model_evspec.h index d775a1c..efa0657 100644 --- a/src/emu/model_evspec.h +++ b/src/emu/model_evspec.h @@ -19,6 +19,6 @@ struct model_evspec { }; USE_RET int model_evspec_init(struct model_evspec *evspec, struct model_spec *spec); -USE_RET struct ev_spec *model_evspec_find(struct model_evspec *evspec, char mcv[4]); +USE_RET struct ev_spec *model_evspec_find(struct model_evspec *evspec, char *mcv); #endif /* MODEL_EVSPEC_H */