From b8413ddd5bf1601bd7ca7d3fc92d347ac32cfba9 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 28 Dec 2020 17:12:51 -0800 Subject: [PATCH] [wpiutil] Add noexcept to timestamp static functions (#2994) This silences a clang-tidy warning. --- wpiutil/src/main/native/cpp/timestamp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpiutil/src/main/native/cpp/timestamp.cpp b/wpiutil/src/main/native/cpp/timestamp.cpp index 64820783e5..9c32bf3ac9 100644 --- a/wpiutil/src/main/native/cpp/timestamp.cpp +++ b/wpiutil/src/main/native/cpp/timestamp.cpp @@ -16,7 +16,7 @@ #endif // offset in microseconds -static uint64_t zerotime() { +static uint64_t zerotime() noexcept { #ifdef _WIN32 FILETIME ft; uint64_t tmpres = 0; @@ -40,7 +40,7 @@ static uint64_t zerotime() { #endif } -static uint64_t timestamp() { +static uint64_t timestamp() noexcept { #ifdef _WIN32 LARGE_INTEGER li; QueryPerformanceCounter(&li);