diff options
| author | Mark Rowe <mark@vector35.com> | 2025-12-19 11:12:20 -0800 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-12-20 21:34:49 -0800 |
| commit | ed0f3b1b8593f6b76fbb64c53a0885073c1c1979 (patch) | |
| tree | 5d22d77ccea8bffc0619a32ed886d79d14daccf1 /examples | |
| parent | ba13f6ec7d0ce9a18a03a1c895fb72d18e03014a (diff) | |
Fix many of the warnings that show up when compiling with GCC 15.2
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/background_task/src/backgroundtask.cpp | 2 | ||||
| -rw-r--r-- | examples/cmdline_disasm/src/disasm.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/background_task/src/backgroundtask.cpp b/examples/background_task/src/backgroundtask.cpp index 9b0a17be..29a1cf05 100644 --- a/examples/background_task/src/backgroundtask.cpp +++ b/examples/background_task/src/backgroundtask.cpp @@ -33,7 +33,7 @@ uint64_t InspireWriteCallback(uint8_t *data, uint64_t len, void *ctxt) std::this_thread::sleep_for(std::chrono::seconds(3)); } } - } catch (Json::Exception e) + } catch (const Json::Exception& e) { LogError("JSON exception! %s", e.m_message.c_str()); inspireBackgroundTask->Cancel(); diff --git a/examples/cmdline_disasm/src/disasm.cpp b/examples/cmdline_disasm/src/disasm.cpp index cd119dee..58e3a82b 100644 --- a/examples/cmdline_disasm/src/disasm.cpp +++ b/examples/cmdline_disasm/src/disasm.cpp @@ -1,7 +1,6 @@ #include <cstdio> #include <cstdlib> #include <cstdint> -#include <cstdbool> #include <sys/types.h> #include <sys/stat.h> |
