]> granicus.if.org Git - postgresql/commitdiff
Silence compiler warning on MSVC.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Jan 2014 19:47:54 +0000 (21:47 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Jan 2014 19:49:15 +0000 (21:49 +0200)
MSVC doesn't know that elog(ERROR) doesn't return, and gives a warning about
missing return. Silence that.

Amit Kapila

src/backend/utils/cache/relcache.c

index 86d99e5d559bbde3249592fdac137f510dd26fa2..314422b7dd8a7a6bdc8f6a61d17abe8fe1ba6891 100644 (file)
@@ -3954,6 +3954,7 @@ RelationGetIndexAttrBitmap(Relation relation, IndexAttrBitmapKind attrKind)
                        return indexattrs;
                default:
                        elog(ERROR, "unknown attrKind %u", attrKind);
+                       return NULL;
        }
 }