diff options
author | Simon Ser <simon.ser@intel.com> | 2019-04-24 10:01:29 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-04-24 16:20:52 +0300 |
commit | 11e10bc575516c56978640fcc697c27f277c660a (patch) | |
tree | 06add9bde7f7397382ee694b59feb5fe69e78504 /lib/igt_halffloat.c | |
parent | c48dba1d65bbe7047b616c13eb4f99c3bdc323a9 (diff) |
lib/igt_halffloat: fix compilation with Clang
The source file contains a special code-path for Clang, however this path fails
to compile:
../lib/igt_halffloat.c:227:7: error: conflicting types for 'igt_half_to_float'
float igt_half_to_float(const uint16_t *h, float *f, unsigned int num)
^
../lib/igt_halffloat.h:26:6: note: previous declaration is here
void igt_half_to_float(const uint16_t *h, float *f, unsigned int num);
^
1 error generated.
This commit fixes this mismatch.
Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_halffloat.c')
-rw-r--r-- | lib/igt_halffloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_halffloat.c b/lib/igt_halffloat.c index 263b28c10..08ab05fce 100644 --- a/lib/igt_halffloat.c +++ b/lib/igt_halffloat.c @@ -224,7 +224,7 @@ void igt_float_to_half(const float *f, uint16_t *h, unsigned int num) h[i] = _float_to_half(f[i]); } -float igt_half_to_float(const uint16_t *h, float *f, unsigned int num) +void igt_half_to_float(const uint16_t *h, float *f, unsigned int num) { for (int i = 0; i < num; i++) f[i] = _half_to_float(h[i]); |