diff FontPack/base_upperRegion.c @ 699:01f40cb1057e

Cleanup warnings: The code still contained several warnings which have now been resolved. Big thank you to Thomas :-)
author Ideenmodellierer
date Tue, 18 Oct 2022 20:56:19 +0200
parents 0172431fbad9
children
line wrap: on
line diff
--- a/FontPack/base_upperRegion.c	Sun Sep 25 21:13:45 2022 +0200
+++ b/FontPack/base_upperRegion.c	Tue Oct 18 20:56:19 2022 +0200
@@ -115,7 +115,9 @@
 
 #define ASSERT_RANGE(e, min, max) ASSERT(min <= e); ASSERT( e <= max)
 
+#if DEBUG_STLINK_V2
 extern void initialise_monitor_handles(void);
+#endif
 
 static int errors = 0;
 static uint8_t errorflag = 0;
@@ -149,7 +151,7 @@
 
 		for(const tFont* font = & __font_directory; font < &__font_directory_end; ++font)
 		{
-			printf("Font: %x\n",font);
+			printf("Font: %x\n",(unsigned int)font);
 				// Check END-OF-DIRECTORY magic marker
 				if( font->length == (uint32_t)-1 )
 				{
@@ -183,7 +185,7 @@
 						ASSERT(image->height == font->height);
 						if(errorflag)
 						{
-							printf("image %x: h=%d fonth=%d\n",image,image->height,font->height);
+							printf("image %x: h=%d fonth=%d\n",(unsigned int)image,image->height,font->height);
 							errorflag = 0;
 						}
 						// Uncompress image bytes