From b6d06288e0e918dbad2b724caca5a2b0a4ba1e83 Mon Sep 17 00:00:00 2001 From: karri Date: Fri, 30 Dec 2022 15:20:54 +0200 Subject: [PATCH] Fix warnings --- src/sp65/lynxpalette.c | 7 +++++-- src/sp65/lynxpalette.h | 9 +++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/sp65/lynxpalette.c b/src/sp65/lynxpalette.c index e822fa5ee..b084af26e 100644 --- a/src/sp65/lynxpalette.c +++ b/src/sp65/lynxpalette.c @@ -62,10 +62,13 @@ StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A) */ { StrBuf* D; - Palette* P; + const Palette* P = GetBitmapPalette (B); + const char* Format = GetAttrVal(A, "format"); unsigned I; - P = GetBitmapPalette (B); + if (Format == 0) { + /* No format specified */ + } D = NewStrBuf (); for (I = 0; I < 16; ++I) { diff --git a/src/sp65/lynxpalette.h b/src/sp65/lynxpalette.h index 3ba4526fb..805db0d74 100644 --- a/src/sp65/lynxpalette.h +++ b/src/sp65/lynxpalette.h @@ -52,15 +52,12 @@ StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A); /* Generate binary output in Lynx palette format for the bitmap B. The output - * is stored in a string buffer (which is actually a dynamic char array) and - * returned. - */ +** is stored in a string buffer (which is actually a dynamic char array) and +** returned. +*/ /* End of lynxpalette.h */ #endif - - -