-Wunreachable-code-generic-assoc warnings on elver - Mailing list pgsql-hackers

From Tom Lane
Subject -Wunreachable-code-generic-assoc warnings on elver
Date
Msg-id 1189360.1670640609@sss.pgh.pa.us
Whole thread Raw
Responses Re: -Wunreachable-code-generic-assoc warnings on elver  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Recently, buildfarm member elver has started spewing literally
thousands of $SUBJECT:

 elver         | 2022-12-10 01:17:29 | ../../src/include/utils/float.h:223:33: warning: due to lvalue conversion of the
controllingexpression, association of type 'volatile float' will never be selected because it is qualified
[-Wunreachable-code-generic-assoc]
 elver         | 2022-12-10 01:17:29 | ../../src/include/utils/float.h:223:33: warning: due to lvalue conversion of the
controllingexpression, association of type 'volatile double' will never be selected because it is qualified
[-Wunreachable-code-generic-assoc]
 elver         | 2022-12-10 01:17:29 | ../../src/include/utils/float.h:223:33: warning: due to lvalue conversion of the
controllingexpression, association of type 'volatile long double' will never be selected because it is qualified
[-Wunreachable-code-generic-assoc]
[ etc etc, about 9200 times per build ]

I have no idea what that means, and consulting the clang documentation
didn't leave me much wiser.  I do see that a lot of these seem to be
associated with isnan() calls, which makes me guess that clang does
not play nice with however isnan() is declared on that box.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Generate pg_stat_get_* functions with Macros
Next
From: Michael Paquier
Date:
Subject: Re: Generate pg_stat_get_* functions with Macros