Skip to content

Commit 548184d

Browse files
committed
Fix code comment
The changes made in commit d2b4b4c contained incorrect comments: They said that certain forward declarations were necessary to "avoid including pathnodes.h here", but the file is itself pathnodes.h! So change the comment to just say it's a forward declaration in one case, and in the other case we don't need the declaration at all because it already appeared earlier in the file.
1 parent 9b34f10 commit 548184d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/include/nodes/pathnodes.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,7 @@ typedef struct IndexOptInfo IndexOptInfo;
10861086
#define HAVE_INDEXOPTINFO_TYPEDEF 1
10871087
#endif
10881088

1089-
struct IndexPath; /* avoid including pathnodes.h here */
1090-
struct PlannerInfo; /* avoid including pathnodes.h here */
1089+
struct IndexPath; /* forward declaration */
10911090

10921091
struct IndexOptInfo
10931092
{

0 commit comments

Comments
 (0)