diff options
author | David Robillard <d@drobilla.net> | 2020-04-04 10:28:47 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-04 10:31:06 +0200 |
commit | 454773477b9075e36b98c346d61f6c35578c7a11 (patch) | |
tree | 6504d8aadd4e4f8c25006f8dfb741d0ec7631426 /test/test_utils.h | |
parent | a17e87f3a85f081fdfaef0c9d5f076cbaae8b653 (diff) | |
download | pugl-454773477b9075e36b98c346d61f6c35578c7a11.tar.gz pugl-454773477b9075e36b98c346d61f6c35578c7a11.tar.bz2 pugl-454773477b9075e36b98c346d61f6c35578c7a11.zip |
Fix mismatched printf parameter warning
Compilers are allowed to choose signed or unsigned for enums, and apparently
gcc and c++ make different choices.
Diffstat (limited to 'test/test_utils.h')
-rw-r--r-- | test/test_utils.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_utils.h b/test/test_utils.h index 7d33601..1689843 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -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); } } |