mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Fix gcc warning pixbytes may be used uninitialized in this function
This commit is contained in:
parent
3bc866b623
commit
a6cf9ff3e4
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,7 @@ void LoadBMP( char *filename, bitmap_t *bit ){
|
||||||
{
|
{
|
||||||
Error( "Only 8BPP and 24BPP supported" );
|
Error( "Only 8BPP and 24BPP supported" );
|
||||||
//Error("BPP %d not supported.", info.biBitCount);
|
//Error("BPP %d not supported.", info.biBitCount);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if this is an eight bit image load palette
|
// if this is an eight bit image load palette
|
||||||
|
@ -268,6 +269,7 @@ void WriteBMP( char *filename, bitmap_t *bit ){
|
||||||
{
|
{
|
||||||
Error( "Only 8BPP and 24BPP supported" );
|
Error( "Only 8BPP and 24BPP supported" );
|
||||||
//Error("BPP %d not supported.", bit->bpp);
|
//Error("BPP %d not supported.", bit->bpp);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -346,6 +348,7 @@ void NewBMP( int width, int height, int bpp, bitmap_t *bit ){
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Error( "NewBMP: 8 or 24 bit only." );
|
Error( "NewBMP: 8 or 24 bit only." );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bit->bpp = bpp;
|
bit->bpp = bpp;
|
||||||
|
|
Loading…
Reference in a new issue