Fix compiler warning.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 24 Dec 2022 03:41:01 +0000 (12:41 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 24 Dec 2022 05:30:21 +0000 (14:30 +0900)
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

src/sql/pgpool-regclass/pgpool-regclass.c

index 5d9d024fb9486450bdadbe3c4ae3cd85a75a4c20..a8eea5e838f038ede2a6a382af1cc19d48a136a6 100644 (file)
@@ -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
  * If something goes wrong, it returns InvalidOid.
  */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+
 #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 <stdlib.h>
+#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;