gcc6: fix misleading indentation warning
Although not a bug in this case, but shows up when -Wall is used
This commit is contained in:
parent
2a25fc41f6
commit
46c47291e8
@ -3307,10 +3307,10 @@ init_standard_palette(png_store *ps, png_structp pp, png_infop pi, int npalette,
|
|||||||
for (; i<256; ++i)
|
for (; i<256; ++i)
|
||||||
tRNS[i] = 24;
|
tRNS[i] = 24;
|
||||||
|
|
||||||
# ifdef PNG_WRITE_tRNS_SUPPORTED
|
#ifdef PNG_WRITE_tRNS_SUPPORTED
|
||||||
if (j > 0)
|
if (j > 0)
|
||||||
png_set_tRNS(pp, pi, tRNS, j, 0/*color*/);
|
png_set_tRNS(pp, pi, tRNS, j, 0/*color*/);
|
||||||
# endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7937,11 +7937,11 @@ image_transform_png_set_background_set(const image_transform *this,
|
|||||||
else
|
else
|
||||||
back.gray = (png_uint_16)data.red;
|
back.gray = (png_uint_16)data.red;
|
||||||
|
|
||||||
# ifdef PNG_FLOATING_POINT_SUPPORTED
|
#ifdef PNG_FLOATING_POINT_SUPPORTED
|
||||||
png_set_background(pp, &back, PNG_BACKGROUND_GAMMA_FILE, expand, 0);
|
png_set_background(pp, &back, PNG_BACKGROUND_GAMMA_FILE, expand, 0);
|
||||||
# else
|
#else
|
||||||
png_set_background_fixed(pp, &back, PNG_BACKGROUND_GAMMA_FILE, expand, 0);
|
png_set_background_fixed(pp, &back, PNG_BACKGROUND_GAMMA_FILE, expand, 0);
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
this->next->set(this->next, that, pp, pi);
|
this->next->set(this->next, that, pp, pi);
|
||||||
}
|
}
|
||||||
|
10
pngget.c
10
pngget.c
@ -1142,19 +1142,19 @@ png_get_compression_buffer_size(png_const_structrp png_ptr)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifdef PNG_WRITE_SUPPORTED
|
#ifdef PNG_WRITE_SUPPORTED
|
||||||
if ((png_ptr->mode & PNG_IS_READ_STRUCT) != 0)
|
if ((png_ptr->mode & PNG_IS_READ_STRUCT) != 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef PNG_SEQUENTIAL_READ_SUPPORTED
|
#ifdef PNG_SEQUENTIAL_READ_SUPPORTED
|
||||||
return png_ptr->IDAT_read_size;
|
return png_ptr->IDAT_read_size;
|
||||||
#else
|
#else
|
||||||
return PNG_IDAT_READ_SIZE;
|
return PNG_IDAT_READ_SIZE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_WRITE_SUPPORTED
|
#ifdef PNG_WRITE_SUPPORTED
|
||||||
else
|
else
|
||||||
return png_ptr->zbuffer_size;
|
return png_ptr->zbuffer_size;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
28
pngread.c
28
pngread.c
@ -3848,16 +3848,16 @@ png_image_read_direct(png_voidp argument)
|
|||||||
else
|
else
|
||||||
filler = 255;
|
filler = 255;
|
||||||
|
|
||||||
# ifdef PNG_FORMAT_AFIRST_SUPPORTED
|
#ifdef PNG_FORMAT_AFIRST_SUPPORTED
|
||||||
if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
|
if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
|
||||||
{
|
{
|
||||||
where = PNG_FILLER_BEFORE;
|
where = PNG_FILLER_BEFORE;
|
||||||
change &= ~PNG_FORMAT_FLAG_AFIRST;
|
change &= ~PNG_FORMAT_FLAG_AFIRST;
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
# endif
|
#endif
|
||||||
where = PNG_FILLER_AFTER;
|
where = PNG_FILLER_AFTER;
|
||||||
|
|
||||||
png_set_add_alpha(png_ptr, filler, where);
|
png_set_add_alpha(png_ptr, filler, where);
|
||||||
}
|
}
|
||||||
@ -3965,12 +3965,12 @@ png_image_read_direct(png_voidp argument)
|
|||||||
if (info_ptr->bit_depth == 16)
|
if (info_ptr->bit_depth == 16)
|
||||||
info_format |= PNG_FORMAT_FLAG_LINEAR;
|
info_format |= PNG_FORMAT_FLAG_LINEAR;
|
||||||
|
|
||||||
# ifdef PNG_FORMAT_BGR_SUPPORTED
|
#ifdef PNG_FORMAT_BGR_SUPPORTED
|
||||||
if ((png_ptr->transformations & PNG_BGR) != 0)
|
if ((png_ptr->transformations & PNG_BGR) != 0)
|
||||||
info_format |= PNG_FORMAT_FLAG_BGR;
|
info_format |= PNG_FORMAT_FLAG_BGR;
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
# ifdef PNG_FORMAT_AFIRST_SUPPORTED
|
#ifdef PNG_FORMAT_AFIRST_SUPPORTED
|
||||||
if (do_local_background == 2)
|
if (do_local_background == 2)
|
||||||
{
|
{
|
||||||
if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
|
if ((format & PNG_FORMAT_FLAG_AFIRST) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user