Skip to content

Commit

Permalink
Add cppcheck suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Jan 4, 2024
1 parent 15d0c79 commit e83b347
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
1 change: 1 addition & 0 deletions src/addon/downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/supertux/title_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e83b347

Please sign in to comment.