Fix warnings

This commit is contained in:
karri
2022-12-30 15:20:54 +02:00
parent f85951ab24
commit b6d06288e0
2 changed files with 8 additions and 8 deletions

View File

@@ -62,10 +62,13 @@ StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A)
*/ */
{ {
StrBuf* D; StrBuf* D;
Palette* P; const Palette* P = GetBitmapPalette (B);
const char* Format = GetAttrVal(A, "format");
unsigned I; unsigned I;
P = GetBitmapPalette (B); if (Format == 0) {
/* No format specified */
}
D = NewStrBuf (); D = NewStrBuf ();
for (I = 0; I < 16; ++I) { for (I = 0; I < 16; ++I) {

View File

@@ -52,8 +52,8 @@
StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A); StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A);
/* Generate binary output in Lynx palette format for the bitmap B. The output /* 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 ** is stored in a string buffer (which is actually a dynamic char array) and
* returned. ** returned.
*/ */
@@ -61,6 +61,3 @@ StrBuf* GenLynxPalette (const Bitmap* B, const Collection* A);
/* End of lynxpalette.h */ /* End of lynxpalette.h */
#endif #endif