From 28afad5c85b436f19d9f2c0e3197c7db960fef6f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 7 Apr 2017 17:37:12 -0400 Subject: [PATCH] Fix compiler warning on MSVC 2010 Author: Michael Paquier --- src/backend/catalog/pg_depend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/catalog/pg_depend.c b/src/backend/catalog/pg_depend.c index aae879e355..3e0db69998 100644 --- a/src/backend/catalog/pg_depend.c +++ b/src/backend/catalog/pg_depend.c @@ -610,8 +610,8 @@ getOwnedSequence(Oid relid, AttrNumber attnum) elog(ERROR, "more than one owned sequence found"); else if (list_length(seqlist) < 1) elog(ERROR, "no owned sequence found"); - else - return linitial_oid(seqlist); + + return linitial_oid(seqlist); } /* -- 2.40.0