-Wunreachable-code-generic-assoc warnings on elver

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: -Wunreachable-code-generic-assoc warnings on elver
Date: 2022-12-10 02:50:09
Message-ID: 1189360.1670640609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 controlling expression, 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 controlling expression, 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 controlling expression, 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-12-10 03:52:16 Re: Generate pg_stat_get_* functions with Macros
Previous Message Tom Lane 2022-12-10 02:43:56 Re: Generate pg_stat_get_* functions with Macros