Skip to content

Commit

Permalink
Mark some examples maybe_unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 26, 2024
1 parent 4584adb commit a81cf47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CesiumAsync/test/ExamplesAsyncSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class SimplestTaskProcessor : public CesiumAsync::ITaskProcessor {
};
//! [simplest-task-processor]

[[maybe_unused]]
//! [async-system-singleton]
CesiumAsync::AsyncSystem& getAsyncSystem() {
static CesiumAsync::AsyncSystem asyncSystem(
Expand Down Expand Up @@ -112,6 +113,7 @@ void computeSomethingSlowly(

template <typename T> void doSomething(const T&) {}

[[maybe_unused]]
//! [compute-something-slowly-wrapper]
CesiumAsync::Future<SlowValue> myComputeSomethingSlowlyWrapper(
const CesiumAsync::AsyncSystem& asyncSystem,
Expand All @@ -127,6 +129,7 @@ CesiumAsync::Future<SlowValue> myComputeSomethingSlowlyWrapper(
}
//! [compute-something-slowly-wrapper]

[[maybe_unused]]
//! [compute-something-slowly-wrapper-handle-exception]
CesiumAsync::Future<SlowValue> myComputeSomethingSlowlyWrapper2(
const CesiumAsync::AsyncSystem& asyncSystem,
Expand Down

0 comments on commit a81cf47

Please sign in to comment.