reduce silencing of warnings for dcraw code
This commit is contained in:
parent
b3ee765bf0
commit
04d5ba3f91
@ -1,12 +1,9 @@
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
#pragma GCC diagnostic ignored "-Wparentheses"
|
||||
#if (__GNUC__ >= 6)
|
||||
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
|
||||
#if (__GNUC__ >= 7)
|
||||
#pragma GCC diagnostic ignored "-Wdangling-else"
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
@ -1045,10 +1042,11 @@ void CLASS canon_sraw_load_raw()
|
||||
for (row=0; row < height; row++, ip+=width) {
|
||||
if (row & (jh.sraw >> 1))
|
||||
for (col=0; col < width; col+=2)
|
||||
for (c=1; c < 3; c++)
|
||||
for (c=1; c < 3; c++) {
|
||||
if (row == height-1)
|
||||
ip[col][c] = ip[col-width][c];
|
||||
else ip[col][c] = (ip[col-width][c] + ip[col+width][c] + 1) >> 1;
|
||||
}
|
||||
for (col=1; col < width; col+=2)
|
||||
for (c=1; c < 3; c++)
|
||||
if (col == width-1)
|
||||
|
@ -343,7 +343,7 @@ void parse_qt (int end);
|
||||
// ph1_bithuff(int nbits, ushort *huff);
|
||||
class ph1_bithuff_t {
|
||||
public:
|
||||
ph1_bithuff_t(DCraw *p, IMFILE *i, short &o):parent(p),order(o),ifp(i),bitbuf(0),vbits(0){}
|
||||
ph1_bithuff_t(DCraw *p, IMFILE *i, short &o):order(o),ifp(i),bitbuf(0),vbits(0){}
|
||||
unsigned operator()(int nbits, ushort *huff);
|
||||
unsigned operator()(int nbits);
|
||||
unsigned operator()();
|
||||
@ -376,7 +376,6 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
DCraw *parent;
|
||||
short ℴ
|
||||
IMFILE* const ifp;
|
||||
UINT64 bitbuf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user