Skip to content

Commit e95d33b

Browse files
Merge pull request #9179 from ahmed532/fix/odb-3dblox-declaration-mismatches
odb: fix 3dblox declaration mismatches
2 parents a0ec515 + 166a0e4 commit e95d33b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ OPENROAD_COPTS = [
125125
"-Wformat-security",
126126
"-Wno-sign-compare",
127127
"-Wno-unused-parameter",
128+
"-Wmismatched-tags",
128129
"-fopenmp",
129130
]
130131

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ add_compile_options(
175175
-ffp-contract=off
176176
# Apple clang 14.0.0 deprecates sprintf, which generates 900 warnings.
177177
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-deprecated-declarations>
178+
$<$<CXX_COMPILER_ID:AppleClang>:-Wmismatched-tags>
178179
$<$<BOOL:${ASAN}>:-fsanitize=address>
179180
$<$<BOOL:${ASAN}>:-fno-omit-frame-pointer>
180181
$<$<BOOL:${ASAN}>:-g>

src/odb/include/odb/3dblox.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ class Sta;
1616
}
1717
namespace odb {
1818
class dbDatabase;
19-
class ChipletDef;
20-
class ChipletRegion;
2119
class dbChip;
22-
class ChipletInst;
23-
class Connection;
24-
class DesignDef;
2520
class dbChipRegionInst;
2621
class dbChipInst;
2722
class dbChipRegion;
@@ -31,6 +26,11 @@ class dbInst;
3126
class dbTech;
3227
class dbLib;
3328

29+
struct ChipletDef;
30+
struct ChipletRegion;
31+
struct ChipletInst;
32+
struct Connection;
33+
struct DesignDef;
3434
struct BumpMapEntry;
3535

3636
class ThreeDBlox

src/par/include/par/PartitionMgr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct MasterInfo
4646

4747
class Cluster;
4848
using SharedClusterVector = std::vector<std::shared_ptr<Cluster>>;
49-
class ModuleMgr;
49+
struct ModuleMgr;
5050
class TritonPart;
5151

5252
struct CompareInstancePtr

0 commit comments

Comments
 (0)