Skip to content

Commit

Permalink
Fix warning with gcc 11.3.1
Browse files Browse the repository at this point in the history
Reported-by: Kevin Sala <kevin.sala@bsc.es>
  • Loading branch information
rodarima committed May 10, 2024
1 parent 3a300c8 commit 014152f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix breakdown model error that was preventing a zero value to be written in
the PRV trace.
- Fix gcc 11.3.1 -Wstringop-overflow warning.

## [1.9.0] - 2024-04-25

Expand Down
2 changes: 1 addition & 1 deletion src/emu/model_evspec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/emu/model_evspec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 014152f

Please sign in to comment.