Fix issue with --enable-coverage and the new unicode {de,re}composition code
authorMichael Paquier <michael@paquier.xyz>
Sat, 24 Oct 2020 05:20:38 +0000 (14:20 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 24 Oct 2020 05:20:38 +0000 (14:20 +0900)
commit2771fcee18be0b86d2e008add20f73d175e06e90
tree2c4c21e2fce8c89d024a6ba7a452cc516293333b
parent0b46e82c06b0c4b0dc6a94a890d23945ebf720fd
Fix issue with --enable-coverage and the new unicode {de,re}composition code

genhtml has been generating the following warning with this new code:
WARNING: function data mismatch at /path/src/common/unicode_norm.c:102

HTML coverage reports care about the uniqueness of functions defined in
source files, ignoring any assumptions around CFLAGS.  783f0cc
introduced a duplicated definition of get_code_entry(), leading to a
warning and potentially some incorrect data generated in the reports.
This refactors the code so as the code has only one function
declaration, fixing the warning.

Oversight in 783f0cc.

Reported-by: Tom Lane
Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/207789.1603469272@sss.pgh.pa.us
src/common/unicode_norm.c