Skip to content

Commit d5221c4

Browse files
committed
Fix cpluspluscheck for "Change gist stratnum function to use CompareType"
Commit 630f9a4 introduced an enum forward declaration, which doesn't work in C++. To fix, just include the header file to get the type.
1 parent 3edc67d commit d5221c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/access/gist.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "access/transam.h"
2222
#include "access/xlog.h"
2323
#include "access/xlogdefs.h"
24+
#include "nodes/primnodes.h"
2425
#include "storage/block.h"
2526
#include "storage/bufpage.h"
2627
#include "utils/relcache.h"
@@ -247,7 +248,6 @@ typedef struct
247248
do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
248249
(e).offset = (o); (e).leafkey = (l); } while (0)
249250

250-
enum CompareType;
251-
extern StrategyNumber GistTranslateStratnum(Oid opclass, enum CompareType cmp);
251+
extern StrategyNumber GistTranslateStratnum(Oid opclass, CompareType cmp);
252252

253253
#endif /* GIST_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy