8000 Make our back branches build under -fkeep-inline-functions. · postgres/postgres@b69e9df · GitHub
[go: up one dir, main page]

Skip to content

Commit b69e9df

Browse files
committed
Make our back branches build under -fkeep-inline-functions.
Add "#ifndef FRONTEND" where necessary to make pg_waldump build on compilers that don't elide unused static-inline functions. This back-patches relevant parts of commit 3e9ca52, fixing build breakage from dc7420c and back-patching of f10f0ae. Per recently-resurrected buildfarm member castoroides. We aren't expecting castoroides to build anything newer than v11, but we might as well clean up the intermediate branches while at it.
1 parent 0a26952 commit b69e9df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/utils/rel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ typedef struct ViewOptions
468468
#define RelationIsMapped(relation) \
469469
((relation)->rd_rel->relfilenode == InvalidOid)
470470

471+
#ifndef FRONTEND
471472
/*
472473
* RelationGetSmgr
473474
* Returns smgr file handle for a relation, opening it if needed.
@@ -488,6 +489,7 @@ RelationGetSmgr(Relation rel)
488489
smgrsetowner(&(rel->rd_smgr), smgropen(rel->rd_node, rel->rd_backend));
489490
return rel->rd_smgr;
490491
}
492+
#endif /* !FRONTEND */
491493

492494
/*
493495
* RelationOpenSmgr

0 commit comments

Comments
 (0)
0