OSDN Git Service

Fix compiler warning in bigmstrcmp().
authorFujii Masao <fujii@postgresql.org>
Tue, 4 Feb 2020 12:20:19 +0000 (21:20 +0900)
committerFujii Masao <fujii@postgresql.org>
Tue, 4 Feb 2020 12:31:54 +0000 (21:31 +0900)
commit14ef8b56b57418ee5c2cede053b22435b546944e
tree6db6e5a8fbfd0a3abeeb176ee71ddfbe47dd93bc
parent9271d0a98339613cb047356908b17e04d78442c0
Fix compiler warning in bigmstrcmp().

Commit 86d78ef in PostgreSQL caused the compiler to report
the following warning when compiling pg_bigm on PostgreSQL 12
or later. This commit fixes it.

    warning: inline function 'bigmstrcmp' declared but never defined [enabled by default]

To suppress the compiler warning, this commit gets rid of
"extern inline" declaration for bigmstrcmp() and moves its definition
into the header file as "static inline" function.

Back-patch to pg_bigm 1.0. Since pg_bigm 1.1 and 1.0 don't support
PostgreSQL 12 or later, basically this commit doesn't need
to be back-patch to 1.1 and 1.0. But we do that because making
the code look similar in all branches for the ease of future
maintenance.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000327.html
bigm.h
bigm_op.c