summaryrefslogtreecommitdiff
path: root/amiga/icon.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 20:18:26 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 20:26:40 +0100
commit65adc1712123f81847a85ce0374acc5a741368ec (patch)
tree6ddd721ec3488806ee0f209d367bf0a3da62c0a7 /amiga/icon.c
parent975a1d3c5db0dc11a4f5ada68d5d424850858161 (diff)
downloadnetsurf-65adc1712123f81847a85ce0374acc5a741368ec.tar.gz
netsurf-65adc1712123f81847a85ce0374acc5a741368ec.tar.bz2
Fix a bunch of cppcheck unused/unreadVariable warnings
Diffstat (limited to 'amiga/icon.c')
-rw-r--r--amiga/icon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/icon.c b/amiga/icon.c
index c5bc6ae1f..a6b61a273 100644
--- a/amiga/icon.c
+++ b/amiga/icon.c
@@ -139,7 +139,7 @@ bool amiga_icon_convert(struct content *c)
ULONG size;
int width = 0, height = 0;
long format = 0;
- int err = 0;
+ int err;
uint8 r, g, b, a;
ULONG offset;
const char *url;
@@ -365,7 +365,7 @@ void amiga_icon_superimpose_favicon_internal(struct hlcache_handle *icon, struct
ULONG *icondata1, *icondata2;
ULONG width, height;
long format = 0;
- int err = 0;
+ int err;
if(dobj == NULL) return;
@@ -420,11 +420,10 @@ void amiga_icon_superimpose_favicon_internal(struct hlcache_handle *icon, struct
void amiga_icon_superimpose_favicon(char *path, struct hlcache_handle *icon, char *type)
{
struct DiskObject *dobj = NULL;
- struct BitMap *bm = NULL;
ULONG *icondata1, *icondata2;
ULONG width, height;
long format = 0;
- int err = 0;
+ int err;
ULONG trans1, pals1;
ULONG trans2, pals2;
struct ColorRegister *pal1;