From c9bf3b14b578af1fa12e7d1398c711902a9c23d9 Mon Sep 17 00:00:00 2001 From: Andrew Adams Date: Tue, 25 Jul 2023 13:29:57 -0700 Subject: [PATCH] Fix float16 warning for older clangs (#7701) --- test/correctness/float16_t.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/correctness/float16_t.cpp b/test/correctness/float16_t.cpp index a1f84abcc658..2c10f3e81ae6 100644 --- a/test/correctness/float16_t.cpp +++ b/test/correctness/float16_t.cpp @@ -20,10 +20,8 @@ __attribute__((weak)) float __extendhfsf2(float actually_a_float16) { #else -// We haven't tested this variant, so emit a warning if we ever compile for it. -#pragma message "This variant of __extendhfsf2 has not been tested." __attribute__((weak)) float __extendhfsf2(uint16_t data) { - return Halide::float16_t::make_from_bits(data); + return (float)Halide::float16_t::make_from_bits(data); } #endif