Skip to content

Commit 47fbc84

Browse files
[Warnings] Fixed Incorrect Forward Declaration
In RoutePathManager, the forward declaration of the RoutingContext was incorrectly made a class instead of a struct. This was causing several warnings in the Clang build (but not in the GCC build). Fixed since the forward declaration should match the declaration.
1 parent 611ca51 commit 47fbc84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/route_path_manager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct t_heap_path {
2828
};
2929

3030
// Forward declaration of RoutingContext needed for traceback insertion
31-
class RoutingContext;
31+
struct RoutingContext;
3232

3333
/* A class to manage the extra data required for RCV
3434
* It manages a set containing all the nodes that currently exist in the route tree
@@ -117,4 +117,4 @@ class PathManager {
117117
std::set<RRNodeId> route_tree_nodes_;
118118
};
119119

120-
#endif
120+
#endif

0 commit comments

Comments
 (0)