diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 21:45:23 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 21:45:23 +0000 |
commit | 7370e83d605814c0d79482427dd17a2621a86c7e (patch) | |
tree | 436637a4792ce8ba9be1ed3d43b01ee355024129 /amiga/bitmap.c | |
parent | 2544f60ae09869567f91d29ead78e33daee62806 (diff) | |
download | netsurf-7370e83d605814c0d79482427dd17a2621a86c7e.tar.gz netsurf-7370e83d605814c0d79482427dd17a2621a86c7e.tar.bz2 |
Squash a minor warning from GCC
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r-- | amiga/bitmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c index 02797bc86..54ac1eac4 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -381,8 +381,8 @@ struct bitmap *ami_bitmap_from_datatype(char *filename) static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm) { -#ifdef __amigaos4__ struct BitMap *tbm = NULL; +#ifdef __amigaos4__ if(!bitmap) return NULL; @@ -479,9 +479,8 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width, bitmap->nativebmheight = height; } } - - return tbm; #endif + return tbm; } PLANEPTR ami_bitmap_get_mask(struct bitmap *bitmap, int width, |