gecko-dev/gfx/qcms
Nicholas Nethercote af6751ef10 Bug 1205533 - Fix and disallow warnings in gfx/qcms/. r=jrmuizel.
This patch fixes various warnings from MSVC.

- Several "truncation from 'double' to 'float'" warnings, easily fixed by
  appending 'f' to literals.

- Some "signed/unsigned mismatch" warnings. In read_tag_lutType(), MSVC is
  apparently promoting the multiplication of a uint8_t and a uint16_t to an
  int32_t, oddly enough. A uint32_t cast fixes the warning.

- |offset| was unused in qcms_data_create_rbg_with_gamma().

- A couple of "overflow in floating-point constant arithmetic" warnings
  involving INFINITY in transform_util.c. There is some type confusion here --
  in C99 HUGE_VAL is a double and INFINITY is a float. So the HUGE_VAL here
  should actualy be HUGE_VALF. But, strangely enough, that isn't enough to
  avoid the warning, I don't know why. However, it turns out that any
  non-positive value for |interval| will have the same effect, so I just
  removed all the INFINITY/HUGE_VAL stuff and used -1 instead.

It also fixes an ARM-only GCC warning.

- "'__force_align_arg_pointer__' attribute directive ignored". This is an
  x86-only attribute. Instead of disabling it on x86-64, instead enable it on
  i386 (which avoids enabling it uselessly on ARM).

--HG--
extra : rebase_source : 61015b7e48aebd58035fc222abf076e79a99a972
2015-09-17 17:11:27 -07:00
..
chain.c Bug 1166252 - Reject lut8/16Type with empty CLUT grid. r=jrmuizel 2015-08-25 15:48:55 -04:00
chain.h
iccread.c Bug 1205533 - Fix and disallow warnings in gfx/qcms/. r=jrmuizel. 2015-09-17 17:11:27 -07:00
matrix.c
matrix.h
moz.build Bug 1205533 - Fix and disallow warnings in gfx/qcms/. r=jrmuizel. 2015-09-17 17:11:27 -07:00
qcms.h Bug 907196 - Split CreateCMSOutputProfile profile loading into GetCMSOutputProfileData. r=BenWa, r=jmuizelaar 2013-11-07 18:20:08 +08:00
qcmsint.h Bug 907196 - Split CreateCMSOutputProfile profile loading into GetCMSOutputProfileData. r=BenWa, r=jmuizelaar 2013-11-07 18:20:08 +08:00
qcmstypes.h Bug 957002. Stop including prtypes.h for endian macros. r=jrmuizel 2014-02-10 18:45:43 -05:00
transform_util.c Bug 1205533 - Fix and disallow warnings in gfx/qcms/. r=jrmuizel. 2015-09-17 17:11:27 -07:00
transform_util.h Bug 1132467 - Adjust qcms lut inverse binary search of non monotonic TRC. r=jrmuizel 2015-06-04 19:30:52 -04:00
transform-altivec.c Bug 817153 - AltiVec acceleration for qcms. r=jmuizelaar 2013-01-15 19:44:43 -05:00
transform-sse1.c Backed out changeset 4914871dbd96 (bug 1163740) now that the diagnostic patch has served its purpose 2015-05-26 13:07:26 -04:00
transform-sse2.c
transform.c Bug 1205533 - Fix and disallow warnings in gfx/qcms/. r=jrmuizel. 2015-09-17 17:11:27 -07:00