From: Peter Eisentraut Date: Fri, 7 Apr 2017 21:37:12 +0000 (-0400) Subject: Fix compiler warning X-Git-Tag: REL_10_BETA1~336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28afad5c85b436f19d9f2c0e3197c7db960fef6f;p=postgresql Fix compiler warning on MSVC 2010 Author: Michael Paquier --- 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); } /*