From b091bf6e8b15ca289ec4ffe27b8b9829b0baaeb8 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 16:24:29 +0100 Subject: [PATCH] cppcheck: avoid undef macro warning --- client/src/cmdhw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 9bbdc9836..48e337743 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1731,7 +1731,11 @@ void pm3_version(bool verbose, bool oneliner) { #else PrintAndLogEx(NORMAL, " Native BT support......... " _YELLOW_("absent")); #endif + #ifdef HAVE_PYTHON +#ifndef PY_VERSION +#define PY_VERSION "unknown version" +#endif PrintAndLogEx(NORMAL, " Python script support..... " _GREEN_("present") " ( " _YELLOW_(PY_VERSION) " )"); #else PrintAndLogEx(NORMAL, " Python script support..... " _YELLOW_("absent"));