pgsql: Fix -Wmissing-variable-declarations warnings for float.c special

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix -Wmissing-variable-declarations warnings for float.c special
Date: 2024-07-25 08:49:55
Message-ID: E1sWuAd-0017yE-9q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix -Wmissing-variable-declarations warnings for float.c special case

This adds extern declarations for the global variables defined in
float.c but not meant for external use. This is a workaround to be
able to add -Wmissing-variable-declarations to the global set of
warning options in the near future.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce(at)eisentraut(dot)org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/37c6923cf3d8ec1bd44924aab6f58f72754a0e7b

Modified Files
--------------
src/backend/utils/adt/float.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-07-25 09:44:01 pgsql: Remove useless unconstify() call
Previous Message Peter Eisentraut 2024-07-25 07:32:13 pgsql: Add extern declarations for Bison global variables