Skip to content

Commit 0e39773

Browse files
committed
Added missing unused arguments.
1 parent dbe9289 commit 0e39773

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

include/codi/tapes/misc/lowLevelFunctionEntry.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ namespace codi {
9797
/// Check if a function is provided for the callType.
9898
template<LowLevelFunctionEntryCallKind callType, typename... Args>
9999
bool has(Args&&... args) const {
100+
CODI_UNUSED(args...);
100101
return nullptr != functions[(size_t)callType];
101102
}
102103
};

include/codi/tapes/tagging/tagTapeReverse.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,15 @@ namespace codi {
128128

129129
/// Do nothing.
130130
size_t getParameter(TapeParameters parameter) const {
131+
CODI_UNUSED(parameter);
132+
131133
return 0;
132134
}
133135

134136
/// Do nothing.
135137
bool hasParameter(TapeParameters parameter) const {
138+
CODI_UNUSED(parameter);
139+
136140
return false;
137141
}
138142

include/codi/tools/helpers/preaccumulationHelper.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ namespace codi {
435435
/// Reverts the tags on all input and output values.
436436
template<typename... Outputs>
437437
void finish(bool const storeAdjoints, Outputs&... outputs) {
438+
CODI_UNUSED(storeAdjoints);
439+
438440
Tape& tape = getTape();
439441

440442
if (tape.isActive() && tape.isPreaccumulationHandlingEnabled()) {

include/codi/tools/lowlevelFunctions/traits/activeArgumentStoreTraits.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,15 @@ namespace codi {
298298
/// @copydoc ActiveArgumentValueStore::restore()
299299
CODI_INLINE static void restore(ByteDataView* store, TemporaryMemory& allocator, size_t size,
300300
RestoreActions const& actions, ArgumentStore& data) {
301-
CODI_UNUSED_ARG(size);
301+
CODI_UNUSED(size);
302302

303303
PointerTraits::restore(store, allocator, 1, actions, data.base);
304304
}
305305

306306
/// @copydoc ActiveArgumentValueStore::store()
307307
CODI_INLINE static void store(ByteDataView* dataStore, TemporaryMemory& allocator, T const& value, size_t size,
308308
StoreActions const& actions, ArgumentStore& data) {
309-
CODI_UNUSED_ARG(size);
309+
CODI_UNUSED(size);
310310

311311
PointerTraits::store(dataStore, allocator, value, 1, actions, data.base);
312312
}
@@ -321,39 +321,39 @@ namespace codi {
321321
/// @copydoc ActiveArgumentValueStore::setExternalFunctionOutput()
322322
CODI_INLINE static void setExternalFunctionOutput(bool tapeActive, T& value, size_t size, Identifier& identifier,
323323
Real& primal, Real& oldPrimals) {
324-
CODI_UNUSED_ARG(size);
324+
CODI_UNUSED(size);
325325

326326
PointerTraits::setExternalFunctionOutput(tapeActive, &value, 1, &identifier, &primal, &oldPrimals);
327327
}
328328

329329
/// @copydoc ActiveArgumentValueStore::getPrimalsFromVector()
330330
CODI_INLINE static void getPrimalsFromVector(VectorAccessInterface<Real, Identifier>* data, size_t size,
331331
Identifier& identifier, Real& primal) {
332-
CODI_UNUSED_ARG(size);
332+
CODI_UNUSED(size);
333333

334334
PointerTraits::getPrimalsFromVector(data, 1, &identifier, &primal);
335335
}
336336

337337
/// @copydoc ActiveArgumentValueStore::setPrimalsIntoVector()
338338
CODI_INLINE static void setPrimalsIntoVector(VectorAccessInterface<Real, Identifier>* data, size_t size,
339339
Identifier& identifier, Real& primal) {
340-
CODI_UNUSED_ARG(size);
340+
CODI_UNUSED(size);
341341

342342
PointerTraits::setPrimalsIntoVector(data, 1, &identifier, &primal);
343343
}
344344

345345
/// @copydoc ActiveArgumentValueStore::getGradients()
346346
CODI_INLINE static void getGradients(VectorAccessInterface<Real, Identifier>* data, size_t size, bool reset,
347347
Identifier& identifier, Gradient& gradient, size_t dim) {
348-
CODI_UNUSED_ARG(size);
348+
CODI_UNUSED(size);
349349

350350
PointerTraits::getGradients(data, 1, reset & identifier, &gradient, dim);
351351
}
352352

353353
/// @copydoc ActiveArgumentValueStore::setGradients()
354354
CODI_INLINE static void setGradients(VectorAccessInterface<Real, Identifier>* data, size_t size, bool update,
355355
Identifier& identifier, Gradient& gradient, size_t dim) {
356-
CODI_UNUSED_ARG(size);
356+
CODI_UNUSED(size);
357357

358358
PointerTraits::setGradients(data, 1, update, &identifier, &gradient, dim);
359359
}

0 commit comments

Comments
 (0)