From cafa264620ab3089be28f408e96dfe7a24acd2f8 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 8 Jan 2024 15:55:56 -0800 Subject: [PATCH] Add nodiscard --- Source/Diagnostics/RecordingPlaneDiagnostics.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Diagnostics/RecordingPlaneDiagnostics.H b/Source/Diagnostics/RecordingPlaneDiagnostics.H index 1a0c7ccd07f..6243f4d9b0c 100644 --- a/Source/Diagnostics/RecordingPlaneDiagnostics.H +++ b/Source/Diagnostics/RecordingPlaneDiagnostics.H @@ -76,7 +76,7 @@ private: amrex::Box m_buffer_box; int m_flush_counter = 0; - bool GetZSliceInDomain (int lev) const; + [[nodiscard]] bool GetZSliceInDomain (int lev) const; bool m_last_timeslice_filled = false; };