From 454773477b9075e36b98c346d61f6c35578c7a11 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Apr 2020 10:28:47 +0200 Subject: Fix mismatched printf parameter warning Compilers are allowed to choose signed or unsigned for enums, and apparently gcc and c++ make different choices. --- test/test_utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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); } } -- cgit v1.2.1