diff src/dmimage.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 0e355702435d
children
line wrap: on
line diff
--- a/src/dmimage.c	Wed Mar 02 23:23:05 2022 +0200
+++ b/src/dmimage.c	Thu Mar 10 22:36:48 2022 +0200
@@ -106,7 +106,7 @@
     {
         dmErrorDBGMsg(
             "Error decoding image resource %p '%s' [%d, %d, %d]: %s\n",
-            file, file->filename, width, height, comp, stbi_failure_reason());
+            (void *) file, file->filename, width, height, comp, stbi_failure_reason());
         return NULL;
     }
 
@@ -145,7 +145,7 @@
     {
         dmErrorDBGMsg(
             "Format conversion failed for image resource %p '%s' [%d, %d, %d].\n",
-            file, file->filename, width, height, comp);
+            (void *) file, file->filename, width, height, comp);
     }
 
     return result;