diff tools/libgfx.c @ 2572:92b93a12c014

Make some casts explicit instead of implicit, fixes some -pedantic warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 10 Mar 2022 22:36:48 +0200
parents c6ee41fd98dd
children 9807ae37ad69
line wrap: on
line diff
--- a/tools/libgfx.c	Wed Mar 02 23:23:05 2022 +0200
+++ b/tools/libgfx.c	Thu Mar 10 22:36:48 2022 +0200
@@ -1115,7 +1115,7 @@
     {
         res = dmError(DMERR_INIT_FAIL,
             "PNG: png_create_info_struct(%p) failed.\n",
-            png_ptr);
+            (void *) png_ptr);
         goto error;
     }
 
@@ -1240,7 +1240,7 @@
     {
         res = dmError(DMERR_INIT_FAIL,
             "PNG: png_create_info_struct(%p) failed.\n",
-            png_ptr);
+            (void *) png_ptr);
         goto error;
     }