https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111842
--- Comment #13 from n.deshmukh at samsung dot com <n.deshmukh at samsung dot com> --- (In reply to Jonathan Wakely from comment #12) > (In reply to n.deshm...@samsung.com from comment #5) > > The warning is valid but I wish to suppress it like the other > > conversion warning using -Wno flag. > > Why? > > Why not just write the code correctly? It's new code, not legacy code that > needs to be maintained. It can't be legacy code, because it would not have > compiled before GCC 13. The code was still working with GCC 12.1 where the same warning was classified as a float-conversion warning. <source>:7:18: warning: conversion from 'double' to '_Float16' may change value [-Wfloat-conversion] 7 | _Float16 b = a; | The code is part of a third party library. Ideally the code should be fixed to avoid the warning. But until the next release of the library I wanted to disable the warnings that we were getting in our builds. The change in behavior from gcc12 to gcc13 prompted me to come here to check if that was an intended change.