Fix warning with gcc 11.3.1

This commit is contained in:
Rodrigo Arias 2024-05-10 14:59:37 +02:00
parent 3a300c816e
commit 6bd856a84f
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ model_evspec_init(struct model_evspec *evspec, struct model_spec *spec)
} }
struct ev_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; struct ev_spec *s = NULL;
HASH_FIND_STR(evspec->spec, mcv, s); HASH_FIND_STR(evspec->spec, mcv, s);

View File

@ -19,6 +19,6 @@ struct model_evspec {
}; };
USE_RET int model_evspec_init(struct model_evspec *evspec, struct model_spec *spec); 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 */ #endif /* MODEL_EVSPEC_H */