implicit declaration of datumIsEqual in parse_coerce.c
Tomas Vondra <tomas.vondra@2ndquadrant.com>
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: pgsql-hackers@postgresql.org
Date: 2020-04-07T20:54:36Z
Lists: pgsql-hackers
Hi,
Not sure what changed, but I'm seeing this failure:
parse_coerce.c: In function ‘coerce_type’:
parse_coerce.c:345:9: warning: implicit declaration of function ‘datumIsEqual’ [-Wimplicit-function-declaration]
345 | if (!datumIsEqual(newcon->constvalue, val2, false, newcon->constlen))
| ^~~~~~~~~~~~
Not sure if this because of compiler version (I'm on gcc 9.2.1) or
something else - I don't see any obvious changes to relevant parts of
the code, but I haven't dug too much.
Simply including 'utils/datum.h' resolves the issue.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Put back mistakenly removed #include.
- 7a5d74b7dd4b 13.0 landed
-
Restructure polymorphic-type resolution in funcapi.c.
- 4dbcb3f844ec 13.0 cited