Skip to content

Commit

Permalink
Bug fixes for -O3.
Browse files Browse the repository at this point in the history
Compiling at -O3 fails with warnings that don't occur at -O2.
Might be related to inlining of function calls.
  • Loading branch information
MarkMankins authored and Andrew Fasano committed Dec 19, 2023
1 parent 8b9c676 commit ff14601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qapi/string-input-visitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static void parse_type_uint64(Visitor *v, const char *name, uint64_t *obj,
Error **errp)
{
/* FIXME: parse_type_int64 mishandles values over INT64_MAX */
int64_t i;
int64_t i=0;
Error *err = NULL;
parse_type_int64(v, name, &i, &err);
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion qemu-io-cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ static void help_oneline(const char *cmd, const cmdinfo_t *ct)
if (cmd) {
printf("%s ", cmd);
} else {
printf("%s ", ct->name);
printf("%s ", ct->name ? ct->name : "(ct->name==NULL!)");
if (ct->altname) {
printf("(or %s) ", ct->altname);
}
Expand Down

0 comments on commit ff14601

Please sign in to comment.