Skip to content

Commit 928ac04

Browse files
void cast file argument to fix unused parameter warning
1 parent 433dc96 commit 928ac04

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

vpr/src/place/delay_model/delta_delay_model.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void DeltaDelayModel::dump_echo(std::string filepath) const {
5656

5757
void DeltaDelayModel::read(const std::string& file) {
5858
#ifndef VTR_ENABLE_CAPNPROTO
59+
(void)file;
5960
VPR_THROW(VPR_ERROR_PLACE,
6061
"OverrideDelayModel::read is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
6162
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");
@@ -106,9 +107,10 @@ void DeltaDelayModel::read(const std::string& file) {
106107

107108
void DeltaDelayModel::write(const std::string& file) const {
108109
#ifndef VTR_ENABLE_CAPNPROTO
110+
(void)file;
109111
VPR_THROW(VPR_ERROR_PLACE,
110112
"DeltaDelayModel::write is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
111-
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.";
113+
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");
112114
#else
113115

114116
// MallocMessageBuilder object is the generate capnproto message builder,

vpr/src/place/delay_model/override_delay_model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ void OverrideDelayModel::set_base_delay_model(std::unique_ptr<DeltaDelayModel> b
201201

202202
void OverrideDelayModel::read(const std::string& file) {
203203
#ifndef VTR_ENABLE_CAPNPROTO
204+
(void)file;
204205
VPR_THROW(VPR_ERROR_PLACE,
205206
"OverrideDelayModel::read is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
206207
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");
@@ -243,6 +244,7 @@ void OverrideDelayModel::read(const std::string& file) {
243244

244245
void OverrideDelayModel::write(const std::string& file) const {
245246
#ifndef VTR_ENABLE_CAPNPROTO
247+
(void)file;
246248
VPR_THROW(VPR_ERROR_PLACE,
247249
"OverrideDelayModel::write is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
248250
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");

vpr/src/place/delay_model/simple_delay_model.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ float SimpleDelayModel::delay(const t_physical_tile_loc& from_loc, int /*from_pi
5353

5454
void SimpleDelayModel::read(const std::string& file) {
5555
#ifndef VTR_ENABLE_CAPNPROTO
56+
(void)file;
5657
VPR_THROW(VPR_ERROR_PLACE,
5758
"SimpleDelayModel::read is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
5859
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");
@@ -102,6 +103,7 @@ void SimpleDelayModel::read(const std::string& file) {
102103

103104
void SimpleDelayModel::write(const std::string& file) const {
104105
#ifndef VTR_ENABLE_CAPNPROTO
106+
(void)file;
105107
VPR_THROW(VPR_ERROR_PLACE,
106108
"SimpleDelayModel::write is disabled because VTR_ENABLE_CAPNPROTO=OFF. "
107109
"Re-compile with CMake option VTR_ENABLE_CAPNPROTO=ON to enable.");

0 commit comments

Comments
 (0)