]> granicus.if.org Git - postgresql/commitdiff
Silence compiler warning.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 Jan 2014 20:14:20 +0000 (22:14 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 23 Jan 2014 20:15:31 +0000 (22:15 +0200)
Not all compilers understand that elog(ERROR, ...) never returns.

src/backend/access/gin/ginbtree.c

index c17c90fbc2ef82fc7df3833aeb22b9089d5fceb9..a133a34e8d5182e35d1bc1b35b9aa50c51cf874b 100644 (file)
@@ -598,7 +598,10 @@ ginPlaceToPage(GinBtree btree, GinBtreeStack *stack,
                        return false;
        }
        else
+       {
                elog(ERROR, "unknown return code from GIN placeToPage method: %d", rc);
+               return false;           /* keep compiler quiet */
+       }
 }
 
 /*