Suppress warnings for uninitialized values

This commit is contained in:
Robin Stuart 2016-09-04 16:35:11 +01:00
parent d86ac40b20
commit 8d3abf8440
2 changed files with 3 additions and 5 deletions

View File

@ -286,8 +286,8 @@ int gif_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width
int errno; int errno;
int row, column; int row, column;
FILE *gif_file; FILE *gif_file;
unsigned short ImageWidth; unsigned short ImageWidth = image_width;
unsigned short ImageHeight; unsigned short ImageHeight = image_height;
unsigned short usTemp; unsigned short usTemp;
int byte_out; int byte_out;
#ifdef _MSC_VER #ifdef _MSC_VER
@ -306,8 +306,6 @@ int gif_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width
switch (rotate_angle) { switch (rotate_angle) {
case 0: case 0:
case 180: case 180:
ImageWidth = image_width;
ImageHeight = image_height;
symbol->bitmap_width = image_width; symbol->bitmap_width = image_width;
symbol->bitmap_height = image_height; symbol->bitmap_height = image_height;
break; break;

View File

@ -1302,7 +1302,7 @@ int han_xin(struct zint_symbol *symbol, const unsigned char source[], int length
int est_binlen; int est_binlen;
int ecc_level = symbol->option_1; int ecc_level = symbol->option_1;
int i, j, version, posn = 0, glyph, glyph2; int i, j, version, posn = 0, glyph, glyph2;
int data_codewords, size; int data_codewords = 0, size;
int est_codewords; int est_codewords;
int bitmask; int bitmask;
int error_number; int error_number;