diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 18:48:46 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-07-03 18:48:46 +0100 |
commit | ea00b378744f98e38b0c00e97a5c78d9d76d6dd3 (patch) | |
tree | 7e09d5a276753fa9acea863e97d2e06406c82e31 /frontends/amiga/bitmap.c | |
parent | 61979923c146b4456d24e794a44c08adc334cff6 (diff) | |
download | netsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.gz netsurf-ea00b378744f98e38b0c00e97a5c78d9d76d6dd3.tar.bz2 |
Attempt to help gcc out a little
Diffstat (limited to 'frontends/amiga/bitmap.c')
-rw-r--r-- | frontends/amiga/bitmap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/frontends/amiga/bitmap.c b/frontends/amiga/bitmap.c index d6d0c76c9..5b8117a63 100644 --- a/frontends/amiga/bitmap.c +++ b/frontends/amiga/bitmap.c @@ -398,9 +398,10 @@ struct bitmap *ami_bitmap_from_datatype(char *filename) return bm; } -static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, int width, int height, struct BitMap *friendbm, int type) +static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, + int width, int height, struct BitMap *restrict friendbm, int type) { - struct BitMap *tbm = NULL; + struct BitMap *restrict tbm = NULL; if(bitmap->nativebm) { @@ -473,7 +474,7 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, int w if((bitmap->width != width) || (bitmap->height != height)) { - struct BitMap *scaledbm; + struct BitMap *restrict scaledbm; struct BitScaleArgs bsa; int depth = 32; if(type == AMI_NSBM_PALETTEMAPPED) depth = 8; @@ -539,7 +540,8 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap, int w } -static inline struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm) +static inline struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap, + int width, int height, struct BitMap *friendbm) { if((bitmap->native != AMI_NSBM_NONE) && (bitmap->native != AMI_NSBM_TRUECOLOUR)) { amiga_bitmap_modified(bitmap); |