From e83b347a37e73d87eccb980d4766504c2f6dc5fd Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Thu, 4 Jan 2024 07:16:03 +0100 Subject: [PATCH] Add cppcheck suppressions --- .github/workflows/lint.yml | 1 - src/addon/downloader.cpp | 1 + src/supertux/title_screen.cpp | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cc6adbc35fc..c5141800bea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -50,7 +50,6 @@ jobs: - name: Lint code with Cppcheck run: | ./danmar-cppcheck-*/cppcheck \ - -DPACKAGE_VERSION="2" \ --quiet --inline-suppr --language=c++ --error-exitcode=10 \ -j"$(nproc)" --std=c++17 --enable=warning,style \ --suppress=useStlAlgorithm src/ diff --git a/src/addon/downloader.cpp b/src/addon/downloader.cpp index 5d09ae64c9f..7d59629ca07 100644 --- a/src/addon/downloader.cpp +++ b/src/addon/downloader.cpp @@ -281,6 +281,7 @@ class Transfer final else { curl_easy_setopt(m_handle, CURLOPT_URL, url.c_str()); + // cppcheck-suppress unknownMacro curl_easy_setopt(m_handle, CURLOPT_USERAGENT, "SuperTux/" PACKAGE_VERSION " libcURL"); curl_easy_setopt(m_handle, CURLOPT_WRITEDATA, this); diff --git a/src/supertux/title_screen.cpp b/src/supertux/title_screen.cpp index 4ae0145f736..c32845cc626 100644 --- a/src/supertux/title_screen.cpp +++ b/src/supertux/title_screen.cpp @@ -252,6 +252,7 @@ TitleScreen::update_level(float dt_sec) void TitleScreen::refresh_copyright_text() { + // cppcheck-suppress unknownMacro m_copyright_text = "SuperTux " PACKAGE_VERSION "\n" + _("Copyright") + " (c) 2003-2023 SuperTux Devel Team\n" + _("This game comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to\n"