Skip to content

Commit 4e2e2fc

Browse files
peteredutow
authored andcommitted
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 4178eb8 commit 4e2e2fc

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
@@ -1101,8 +1101,7 @@ typedef struct IndexOptInfo IndexOptInfo;
11011101
#define HAVE_INDEXOPTINFO_TYPEDEF 1
11021102
#endif
11031103

1104-
struct IndexPath; /* avoid including pathnodes.h here */
1105-
struct PlannerInfo; /* avoid including pathnodes.h here */
1104+
struct IndexPath; /* forward declaration */
11061105

11071106
struct IndexOptInfo
11081107
{

0 commit comments

Comments
 (0)