Skip to content

Commit

Permalink
Fix mismatched printf parameter warning
Browse files Browse the repository at this point in the history
Compilers are allowed to choose signed or unsigned for enums, and apparently
gcc and c++ make different choices.
  • Loading branch information
drobilla committed Apr 4, 2020
1 parent a17e87f commit 4547734
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose)
event->motion.x,
event->motion.y);
default:
fprintf(stderr, "%sUnknown event type %u\n", prefix, event->type);
break;
return PRINT("%sUnknown event type %d\n", prefix, (int)event->type);
}
}

Expand Down

0 comments on commit 4547734

Please sign in to comment.