From: Tatsuo Ishii Date: Sat, 24 Dec 2022 03:41:01 +0000 (+0900) Subject: Fix compiler warning. X-Git-Tag: V4_0_22~14 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6013de9e208257d64c05cc14c0915df45ebc04a4;p=pgpool2.git Fix compiler warning. pgpool-regclass.c needed to include "utils/varlena.h". Also sort out the header files order (except postgres.h which needs to be appear at the top among PostgreSQL header files). The compiler warning was reported by Florian Weimer. https://www.pgpool.net/pipermail/pgpool-hackers/2022-December/004241.html --- diff --git a/src/sql/pgpool-regclass/pgpool-regclass.c b/src/sql/pgpool-regclass/pgpool-regclass.c index 5d9d024fb..a8eea5e83 100644 --- a/src/sql/pgpool-regclass/pgpool-regclass.c +++ b/src/sql/pgpool-regclass/pgpool-regclass.c @@ -2,7 +2,7 @@ /* * $Header$ * - * Copyright (c) 2003-2012 PgPool Global Development Group + * Copyright (c) 2003-2022 PgPool Global Development Group * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose and without fee is hereby @@ -20,20 +20,21 @@ * If something goes wrong, it returns InvalidOid. */ +#include #include #include #include + #include "postgres.h" -#include "utils/builtins.h" -#include "utils/syscache.h" -#include "utils/elog.h" #include "catalog/namespace.h" -#include "nodes/makefuncs.h" #include "commands/dbcommands.h" #include "fmgr.h" #include "funcapi.h" - -#include +#include "nodes/makefuncs.h" +#include "utils/builtins.h" +#include "utils/elog.h" +#include "utils/syscache.h" +#include "utils/varlena.h" #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC;