Commit 3f6b3be3 authored by Andres Freund's avatar Andres Freund

Silence -Wmaybe-uninitialized compiler warnings in dbcommands.c.

When compiling postgres using gcc -O3, there are false-positive
warnings about the now initialized variables. Silence them.

Author: Peter Eisentraut, Andres Freund
Discussion: https://postgr.es/m/15fb2350-b8b8-e188-278f-0b34fdee5210@2ndquadrant.com
parent 5adafaf1
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "access/genam.h" #include "access/genam.h"
#include "access/heapam.h" #include "access/heapam.h"
#include "access/htup_details.h" #include "access/htup_details.h"
#include "access/multixact.h"
#include "access/tableam.h" #include "access/tableam.h"
#include "access/xact.h" #include "access/xact.h"
#include "access/xloginsert.h" #include "access/xloginsert.h"
...@@ -103,14 +104,14 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt) ...@@ -103,14 +104,14 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
Relation rel; Relation rel;
Oid src_dboid; Oid src_dboid;
Oid src_owner; Oid src_owner;
int src_encoding; int src_encoding = -1;
char *src_collate; char *src_collate = NULL;
char *src_ctype; char *src_ctype = NULL;
bool src_istemplate; bool src_istemplate;
bool src_allowconn; bool src_allowconn;
Oid src_lastsysoid; Oid src_lastsysoid = InvalidOid;
TransactionId src_frozenxid; TransactionId src_frozenxid = InvalidTransactionId;
MultiXactId src_minmxid; MultiXactId src_minmxid = InvalidMultiXactId;
Oid src_deftablespace; Oid src_deftablespace;
volatile Oid dst_deftablespace; volatile Oid dst_deftablespace;
Relation pg_database_rel; Relation pg_database_rel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment