mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Remove unused return value from check_percona_api_version()
There is no user of this return value and furthermore the function can only ever return true.
This commit is contained in:
parent
b7d52ab9a1
commit
d602c2ec67
@ -14,16 +14,13 @@
|
|||||||
|
|
||||||
extern const PGDLLIMPORT int percona_api_version;
|
extern const PGDLLIMPORT int percona_api_version;
|
||||||
|
|
||||||
static inline bool
|
static inline void
|
||||||
check_percona_api_version(void)
|
check_percona_api_version(void)
|
||||||
{
|
{
|
||||||
if (PERCONA_API_VERSION != percona_api_version)
|
if (PERCONA_API_VERSION != percona_api_version)
|
||||||
{
|
{
|
||||||
elog(FATAL, "Percona API version mismatch, the extension was built against a different PostgreSQL version!");
|
elog(FATAL, "Percona API version mismatch, the extension was built against a different PostgreSQL version!");
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user