Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 845fc13

Browse files
authored
Mark unused variable (#3024)
1 parent 6709d22 commit 845fc13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ml/neural_net/tf_compute_context.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ std::unique_ptr<compute_context> create_tf_compute_context() {
259259

260260
// At static-init time, register create_tf_compute_context().
261261
// TODO: Codify priority levels?
262-
static auto* tf_registration = new compute_context::registration(
262+
static auto* tf_registration __attribute__((unused)) =
263+
new compute_context::registration(
263264
/* priority */ 1, &create_tf_compute_context, &create_tf_compute_context);
264265

265266
} // namespace

0 commit comments

Comments
 (0)