Skip to content

Commit 6f9d8cb

Browse files
committed
Fixed pipeline errors
1 parent 4f86357 commit 6f9d8cb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/cfg/microsoft_gsl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test library configuration for microsoft_gsl.cfg
22
//
33
// Usage:
4-
// $ cppcheck --check-library --library=microsoft_gsl --enable=style,information --inconclusive --error-exitcode=1 --inline-suppr test/cfg/microsoft_gsl.cpp
4+
// $ cppcheck --check-library --library=microsoft_gsl --enable=style,information --inconclusive --error-exitcode=1 --inline-suppr --suppress=autoNoType test/cfg/microsoft_gsl.cpp
55
// =>
66
// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
77
//
@@ -43,7 +43,7 @@ auto suppress_macro_test(std::span<int> s) -> int
4343
return s[0];
4444
}
4545

46-
auto iterate_over_container_test(std::vector<int> v) -> int
46+
auto iterate_over_container_test(const std::vector<int> &v) -> int
4747
{
4848
int sum{0};
4949

test/cfg/runtests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function check_file {
549549
kde.cpp)
550550
# TODO: "kde-4config" is no longer commonly available in recent distros
551551
#kde_fn
552-
cppcheck_run --library="$lib" --library=qt "${DIR}""$f"
552+
cppcheck_run --library="$lib" --library=qt "${DIR}""$f"
553553
;;
554554
libcurl.c)
555555
libcurl_fn
@@ -564,7 +564,7 @@ function check_file {
564564
cppcheck_run --library="$lib" "${DIR}""$f"
565565
;;
566566
microsoft_gsl.cpp)
567-
cppcheck_run --library="$lib" "${DIR}""$f"
567+
cppcheck_run --suppress=autoNoType --library="$lib" "${DIR}""$f"
568568
;;
569569
mfc.cpp)
570570
mfc_fn

0 commit comments

Comments
 (0)