Skip to content

Commit c0ea407

Browse files
committed
drt: clang-tidy
Signed-off-by: Matt Liberty <[email protected]>
1 parent d800511 commit c0ea407

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/drt/src/PACallBack.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class FlexPA;
1515
class PACallBack : public utl::CallBack
1616
{
1717
public:
18-
PACallBack(TritonRoute* router) : router_(router) {}
18+
PACallBack(TritonRoute* router) /* : router_(router) */ {}
1919

2020
~PACallBack() override = default;
2121

@@ -25,7 +25,7 @@ class PACallBack : public utl::CallBack
2525
}
2626

2727
private:
28-
TritonRoute* router_;
28+
// TritonRoute* router_;
2929
};
3030

3131
} // namespace drt

src/drt/src/TritonRoute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ int TritonRoute::main()
10471047
prep();
10481048
ta();
10491049
if (distributed_) {
1050-
asio::post(*dist_pool_, [this] { sendDesignUpdates(""); });
1050+
asio::post(dist_pool_.value(), [this] { sendDesignUpdates(""); });
10511051
}
10521052
dr();
10531053
if (!router_cfg_->SINGLE_STEP_DR) {

src/drt/src/dr/FlexDR_graphics.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "gui/gui.h"
2222
#include "odb/dbTypes.h"
2323
#include "odb/geom.h"
24+
#include "omp.h"
2425

2526
namespace drt {
2627

src/drt/src/frDesign.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class frDesign
8787
void addUpdate(const drUpdate& update)
8888
{
8989
if (updates_.empty()) {
90-
updates_.resize(omp_get_num_threads() * 2);
90+
updates_.resize(omp_get_num_threads() * 2UL);
9191
}
9292
auto num_batches = updates_.size();
9393
updates_[updates_sz_++ % num_batches].push_back(update);

src/drt/src/pa/FlexPA_graphics.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "frBaseTypes.h"
1515
#include "global.h"
1616
#include "gui/gui.h"
17+
#include "omp.h"
1718
#include "pa/FlexPA.h"
1819
#include "utl/Logger.h"
1920

0 commit comments

Comments
 (0)